Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cropping Image Fails When Width and Height Differ by 1 Pixel #88

Open
thetruth666 opened this issue Jan 26, 2025 · 0 comments
Open

Cropping Image Fails When Width and Height Differ by 1 Pixel #88

thetruth666 opened this issue Jan 26, 2025 · 0 comments

Comments

@thetruth666
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant