Bug 443599

Summary: Changing the window size while viewing images on <100% makes zoom jump to 100
Product: [Applications] gwenview Reporter: Gabriel <gabriel>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: RESOLVED FIXED    
Severity: minor Keywords: usability
Priority: NOR    
Version First Reported In: 21.08.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Showcasing two cases that trigger the zoom change

Description Gabriel 2021-10-11 15:27:43 UTC
Created attachment 142334 [details]
Showcasing two cases that trigger the zoom change

SUMMARY
If you view an image in Gwenview, zoomed to any amount less than 100%, and then resize the view area, the zoom will pop back to 100%. This happens for example when opening the side panel or resizing the window.

STEPS TO REPRODUCE
1. Open a picture in Gwenview
2. Set the zoom to any number less than 100%
3. Decrease the window size a bit or open the sidebar

OBSERVED RESULT
The zoom changes to 100%

EXPECTED RESULT
The zoom stays consistent

SOFTWARE
OS: KDE neon Testing Edition
KDE Plasma Version: 5.23.0
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.3 

ADDITIONAL INFORMATION
I guess that this is as a result of trying to keep the image from being smaller than the minimum fit. It shouldn't be triggered unless really needed though.
Comment 1 Gabriel 2021-10-15 12:28:13 UTC
I forgot to add: Tested with Gwenview version 21.08.2
Comment 2 Gabriel 2025-06-18 10:16:41 UTC
This bug appears to no longer happen now that I test it on Gwenview 25.04.2. Closing.

Thanks for the good work! :^D