Skip to content

picture: Fix hi-dpi image handling

Matthias Clasen requested to merge fix-hidpi-pictures into main

The idea behind this code was to let scalable images (i.e. mainly SVGs) provide twice as much detail when the scale is 2. But we were also using a scaler for pngs, causing them to be too small on a hidpi screen. Fix that.

Note that there are cases where you want scaling for pngs (when you display them scaled down, so the image has 'hidden' detail). But we are not attempting to handle that situation automatically.

Merge request reports