Re:Image Scaling Attacks
by VMG on Thursday October 29, 2020 @05:17AM
(#24928589)
is it like this? http://www.ericbrasseur.org/gamma.html?i=1
[ Parent
| on HN ]
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?
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.
> 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.