Bug 432602

Summary: crop / resize canvas to cm
Product: [Applications] krita Reporter: soloturn
Component: Resize/Scale Image/LayerAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: ahab.greybeard, ghevan, kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description soloturn 2021-02-07 09:50:21 UTC
am trying to reduze the size and crop an image to passport-photo size of 4.5x3.5 cm. first i could "image - scale image to new size" to get the hight correct. then i could reduce the width of the canvas, but it would cut either left or right. cropping with the mouse is also possible but it would not tell me the size in advance, and its difficult to make it 4.5.

it would be great if resize and crop would be supported better.
Comment 1 Ahab Greybeard 2021-02-07 19:11:59 UTC
As a workaround you can Edit a rectangular vector selection to be 3.5cm by 4.5 cm then lock its aspect ratio and drag it out with the corner handles and move it to enclose the image as you want it to be seen.
Then copy-paste to a new image and Image -> Scale it down to a cm size.
Comment 2 vanyossi 2021-02-09 01:48:10 UTC
This is a nice wish

To crop to a certain dimension we would need to first set crop factor to a ratio i.e. 4.5/3.5 = 9/7 = 1.29.
After crop resize image to the desired size at a certain user set DPI.
Comment 3 Tiar 2021-05-18 23:57:03 UTC
*** Bug 434498 has been marked as a duplicate of this bug. ***