Bug 515192

Summary: Keep crop settings when changing single attribute of crop settings
Product: [Applications] digikam Reporter: Blomi <imolb>
Component: Plugin-Editor-CropAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: imolb
Priority: NOR    
Version First Reported In: 8.8.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Blomi 2026-01-28 07:22:24 UTC
SUMMARY
In the image editor aspect ratio crop settings most attributes should stay unchanged, when changing a single attribute.

SCENARIO A: Orientation
STEPS TO REPRODUCE
1. Open Aspect Ratio Crop settings
2. Change size of the rectangle
3. Change position of the rectangle
4. Change orientation setting orientation from "landscape" to "portrait"

OBSERVED RESULT
The size is set to some default(?) values.
The position is set to the default(?) values (rectangle in the middle of the image).

EXPECTED RESULT
The size should swap x and y.
The position should remain somehow as before (either left upper corner or center of the rectangle).



SCENARIO B: Aspect ratio
STEPS TO REPRODUCE
1. Open Aspect Ratio Crop settings
2. Change size of the rectangle
3. Change position of the rectangle
4. Change orientation setting "Aspect ratio" from previous value (e.g. 3:4) to "None"

OBSERVED RESULT
The size is set to some default(?) values.
The position is set to the default(?) values (rectangle in the middle of the image).

EXPECTED RESULT
The size should stay unchanged.
The position should stay unchanged.


SOFTWARE/OS VERSIONS
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
In some cases it is not possible, to keep size and position unchanged (e.g. changing aspect ratio from 1:1 to 1:2). But also in these cases the size and position could stay as close as possible on the previous values, e.g. keep the center of the rectangle the same.