Bug 488559

Summary: Krita Preview for Resize Canvas is wrong when anchoring to the left and using offsets.
Product: [Applications] krita Reporter: Andrew <merwhand>
Component: Resize/Scale Image/LayerAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.2.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: positive numbers show preview crop going right, but result is crop going left

Description Andrew 2024-06-15 22:10:57 UTC
Created attachment 170540 [details]
positive numbers show preview crop going right, but result is crop going left

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY


STEPS TO REPRODUCE
1. Resize image
2. Anchor to the left
3. Use negative numbers 

OBSERVED RESULT
> the preview is the inverse direction of the result.


EXPECTED RESULT
> Use the equivalent positive number to get the correct result of the preview.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Vitamorus 2025-09-17 18:22:06 UTC
Hello Andrew, apologies for the delay

I just wanna make sure that I understand you correct here so there is no confusion later:
You're aware that the red outline in the preview is the current canvas and the white rectangle is the resulting canvas. This works as intended (I expected them to be the other way around at first, to be honest.)

But your expectation is that positive x-offsets should move result canvas to the right relative to the current canvas, and a negative offset should move it to the left, yes? That I agree with, because that seems to align better to how the rest of Krita deals with position.