News for hackers. Stuff that matters.
Re:Image Scaling Attacks by dietrichepp on Thursday October 29, 2020 @04:06AM (#24928249)
There's another way to hide the image, and that is to exploit the nonlinearity of the response curves (gamma).

I have an image I crafted a long time ago which looks something like gray noise when you open it up, but when you downscale it, you see an image of Lt Cmdr Data from Star Trek. I wonder if I can dig it up.

The technique itself was not novel when I did it, a more sophisticated version involving embedded gamma values (which you can make quite large or small) was routinely used on image boards some ten or fifteen years ago.

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.
Re:Image Scaling Attacks by VMG on Thursday October 29, 2020 @05:17AM (#24928589)
Re:Image Scaling Attacks by TeMPOraL on Thursday October 29, 2020 @06:37AM (#24929015)
The article links to this browser test page:

http://www.ericbrasseur.org/gamma_dalai_lama.html

On my machine, both Firefox and Chrome display grey rectangles when scaling down. Why do the browsers get this wrong?

Re:Image Scaling Attacks by tech2 on Thursday October 29, 2020 @08:31AM (#24929777)
Because resizing in a linear colorspace is more costly. JPEG can be resized without shifting colorspaces VERY cheaply, but requires loading into RAM if a change in colorspace (or gamma shift) is performed. The hit can be quite significant. On a phone or laptop it would hurt battery, on an online service (dynamic resizer service) it would impact latency.
Re:Image Scaling Attacks by bawolff on Friday October 30, 2020 @02:25AM (#24939687)
> on an online service (dynamic resizer service) it would impact latency.

If its even possible at all. Sometimes users upload things like https://commons.wikimedia.org/wiki/File:“Declaration_of_vict...

Re:Image Scaling Attacks by choppaface on Thursday October 29, 2020 @12:26PM (#24932206)
Can also depend on the monitor? When I drag this page between monitors I see different effects.