4 ms·
It's ridiculous that so few websites actually handle this well. Even my own self-written imgur clone does it just fine: https://i.k8r.eu/i/F_XCMA https://i.k8r
by kuschku 6y ago
It's ridiculous that so few websites actually handle this well. Even my own self-written imgur clone does it just fine:
https://i.k8r.eu/i/F_XCMA https://i.k8r.eu/i/F_XCMA
https://i.k8r.eu/F_XCMAm.png https://i.k8r.eu/F_XCMAm.png
https://i.k8r.eu/F_XCMAt.png https://i.k8r.eu/F_XCMAt.png
You just have to go into a linear colorspace and use an area filter.
- 05greg 6y agoRelated, You can get an idea of what your browser display is doing in this shadertoy: https://www.shadertoy.com/view/Wd2yRt https://www.shadertoy.com/view/Wd2yRt
- bawolff 6y agoFwiw, the reason why wikipedis doesn't do this when rescaling images (or at least didn't years ago when i was working on image resizing code for wikipedia) is that to do that (with off the shelf software) required keeping the entire image in memory, which was a big no no. I mean, i guess it would be fine for small images, but then you're using two different algorithms depending on image size, which seems bad.