Ask HN: Why have browsers not provided a client solution for image scaling yet?
If you have ever worked in web development than you have built an image uploader that had to scale the image server side at some point in your career.
Given the frequency of this of this super common wanted behavior in websites, why is it that we have GPS tracking and webcam stuff like webrtc but we still can't scale a common jpg? Google, Mozilla? Anyone?
https://www.youtube.com/watch?v=EvKTOHVGNbg
12 comments
[ 3.2 ms ] story [ 47.3 ms ] threadhttps://hacks.mozilla.org/2011/01/how-to-develop-a-html5-ima...
Another point is that holding onto the unmodified images server-side (and merely serving a cached, resized, optimized version on the fly) can be beneficial for future use cases.
Check out, e.g., Thumbor [2] if you're curious to see more of the complexities involved. I have self-hosted it for a company before, and it worked well.
[1]: https://en.wikipedia.org/wiki/Image_scaling
[2]: https://github.com/thumbor/thumbor