Bug 487207

Summary: Gwenview's pixel interpolation activation threshold should be possible to configure, and it should be possible to disable.
Product: [Applications] gwenview Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: ASSIGNED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 24.02.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
URL: https://discuss.kde.org/t/how-to-disable-pixel-interpolation-in-gwenview/15538/3?u=rokejulianlockhart
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Reproduction screencast.

Description Roke Julian Lockhart Beedell 2024-05-18 21:51:32 UTC
SUMMARY
Low resolution images are rendered blurry despite being at low resolution because whether Gwenview's pixel interpolation is active is determined by whether the resolution of the viewport (affected by zoom and original image resolution) is above or below an arbitrary threshold (somewhere below 46 DPI, but above 24 DPI) defined in code, and unconfigurable by the user.

STEPS TO REPRODUCE
Export an image at, or resize an image to, 46 DPI and 24 DPI each.

OBSERVED RESULT
One is rendered blurry, the other is not.

EXPECTED RESULT
The same should occur by default, but the user should be able to configure the threshold (because those who create a lot of pixel art shall need that) and be able to override it from the menu bar context menu per image per session.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.8.9-300.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: ASRock
Product Name: X670E Taichi

ADDITIONAL INFORMATION
https://discuss.kde.org/t/how-to-disable-pixel-interpolation-in-gwenview/15538/3?u=rokejulianlockhart
Comment 1 Roke Julian Lockhart Beedell 2024-08-12 19:50:32 UTC
Created attachment 172563 [details]
Reproduction screencast.
Comment 2 Bug Janitor Service 2024-11-01 20:29:29 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/gwenview/-/merge_requests/303