News for hackers. Stuff that matters.
Re:Image Scaling Attacks by kuschku on Thursday October 29, 2020 @07:26AM (#24929327)
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/F_XCMAm.png

https://i.k8r.eu/F_XCMAt.png

You just have to go into a linear colorspace and use an area filter.

Re:Image Scaling Attacks by 05greg on Thursday October 29, 2020 @07:41AM (#24929432)
Related, You can get an idea of what your browser display is doing in this shadertoy: https://www.shadertoy.com/view/Wd2yRt
Re:Image Scaling Attacks by bawolff on Friday October 30, 2020 @02:20AM (#24939673)
Fwiw, 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.