Bug 488559 - Krita Preview for Resize Canvas is wrong when anchoring to the left and using offsets.
Summary: Krita Preview for Resize Canvas is wrong when anchoring to the left and using...
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Resize/Scale Image/Layer (other bugs)
Version First Reported In: 5.2.2
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-15 22:10 UTC by Andrew
Modified: 2025-09-17 18:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
positive numbers show preview crop going right, but result is crop going left (12.63 KB, image/png)
2024-06-15 22:10 UTC, Andrew
Details

Note You need to log in before you can comment on or make changes to this bug.
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.