Bug 435898

Summary: Preview image display arbitrarily resized after crop
Product: [Applications] digikam Reporter: Tom Cunningham <twcunningham627>
Component: Preview-ImageAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 7.2.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 7.3.0
Sentry Crash Report:

Description Tom Cunningham 2021-04-19 02:20:29 UTC
Preview window arbitrarily resizes the displayed image after a crop operation in the image editor.


STEPS TO REPRODUCE
1. Insure image is displayed fully in preview window.  Invoke image editor.
2. Within image editor, crop a portion of the image.
3. Save image and exit image editor.

OBSERVED RESULT
The image will be displayed in the preview window resized, usually smaller.

EXPECTED RESULT
The cropped image should fill the preview window, as it has in previous versions.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Pro Version 1909

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2021-04-19 05:55:49 UTC
In the preview mode you should press the "Fit to Window" button in the lower status bar, then the image will also be adjusted after a crop. If you fit the image with the slider, it is a zoom level that is maintained, so the image is then smaller after the crop. This change was added by a user via a merge request. Once a zoom factor has been set, it must be retained throughout and not automatically reset to "Fit to Window".

Maik
Comment 2 Tom Cunningham 2021-04-19 13:59:13 UTC
I wasn't aware of the fit-to-window button, so I'm betting I accidentally clicked it during an editing session.  I could duplicate the behavior I was seeing by activating the button inside the image editor.  If I deactivate it during an editing session then everything behaves as expected.  Interestingly, the button icon only changes (on or off) in the image editor; it doesn't change outside the image editor.
Comment 3 Maik Qualmann 2021-04-19 15:07:26 UTC
The "Fit to Windows" button in the editor has a special feature that also exists due to user wishes. It changes from "Fit to Windows" to the last zoom level.

Maik