Skip to content

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

Description

@thetruth666

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions