-
Notifications
You must be signed in to change notification settings - Fork 44
Description
If the width and height of the cropped image differ by 1 pixel, the cropping will fail. The original dimensions of the image are 1220*1219, and using a 1:1 cropping parameter results in a cropped image that is not 1:1Description
I encountered an issue when attempting to crop an image where the width and height differ by 1 pixel. The original dimensions of the image are 1220x1219 pixels. When using a 1:1 cropping parameter, the resulting cropped image is not 1:1.
Steps to Reproduce
Start with an image of dimensions 1220x1219 pixels.
Attempt to crop the image using a 1:1 aspect ratio.
Observe the result.
Expected Behavior
The cropped image should maintain a 1:1 aspect ratio.
Actual Behavior
The cropped image does not maintain a 1:1 aspect ratio, and the cropping fails when the width and height differ by 1 pixel.