Bug 441286

Summary: SVGs scaled incorrectly in Fit and Fill modes when using a high DPI scale factor with "Enlarge smaller images" setting
Product: [Applications] gwenview Reporter: Laura David Hurka <laura.stern>
Component: generalAssignee: Noah Davis <noahadvs>
Status: CONFIRMED ---    
Severity: normal CC: i, nate
Priority: HI Keywords: regression
Version First Reported In: 21.08.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Laura David Hurka 2021-08-21 10:38:02 UTC
SUMMARY
When used on a hiDPI screen, images are displayed bigger than they should.

The checkered background is zoomed to e. g. “Fit” or “Fill”, but the image on top is
1. displayed too large, so it exceeds the checkered background at the bottom-right,
2. blocky.

Only SVG images seem to be affected.

STEPS TO REPRODUCE
1. Turn the screen scale above 100%
2. Open e. g. an SVG icon (which has transparent portions)

OBSERVED RESULT
The rendered image is blocky and exceeds the checkered background, and probably even the largest possible viewport.

EXPECTED RESULT
The rendered image is not blocky and has the requested size.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.3
Graphics Platform: X11
Comment 1 Nate Graham 2021-08-23 17:56:58 UTC
Can reproduce when the "Enlarge smaller images" setting is active.
Comment 2 Laura David Hurka 2021-08-24 21:01:20 UTC
> --- Comment #1 from Nate Graham <nate@kde.org> ---
> Can reproduce when the "Enlarge smaller images" setting is active.

I can not notice a difference when this setting is enabled or disabled. Just 
the initial zoom is different, which can be undone with the zoom slider.
Comment 3 A Linux User 2025-09-04 12:18:28 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08.0 (the latest released version)?