Bug 402554 - Gwenview upscales image on high-DPI monitors when scaling factor (in display settings) is set to >1
Summary: Gwenview upscales image on high-DPI monitors when scaling factor (in display ...
Status: RESOLVED DUPLICATE of bug 373178
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 18.08.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-25 13:05 UTC by tamius.han
Modified: 2018-12-25 14:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Screenshot demo of the issue. (502.81 KB, image/jpeg)
2018-12-25 13:09 UTC, tamius.han
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tamius.han 2018-12-25 13:05:37 UTC
SUMMARY

On high-DPI monitors where scaling factor is set to more than one, gwenview seems to upscale the image by scaling factor. Image appears pixelizated. Issue is demonstrated in the screenshot.

STEPS TO REPRODUCE
1. Set scaling factor in settings > display settings to more than one (I use 1.3)
2. Open any image in gwenview

OBSERVED RESULT

Image is pixelizated, with jagged edges everywhere and generally looks pretty atrocious. (Right side of the screenshot/Gwenview window)

EXPECTED RESULT

Image is displayed normally, with no scaling applied (Left side of the screenshot/GIMP)


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 4.19.8-2-MANJARO
KDE Plasma Version: 5.14.4
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION

Judging by the image quality, it appears that gwenview rescales image twice. It seems the following happens:

1. Gwenview calculates how big the window would be if the scaling factor was set to 1
2. Gwenview rescales the image to fit inside a window of dimensions calculated in step 1
3. Gwenview then upscales the image to fit inside the actual window, using nearest neighbour (upscaling the image from step 2)
Comment 1 tamius.han 2018-12-25 13:09:39 UTC
Created attachment 117099 [details]
Screenshot demo of the issue.

Same image opened in GIMP (left) and Gwenview (right), both at 100%. GIMP displays image correctly, Gwenview upscales and completely ruins it.
Comment 2 Christoph Feck 2018-12-25 14:34:02 UTC

*** This bug has been marked as a duplicate of bug 373178 ***