Skip to content

Cropped images are sometimes 1 pixel too small #23

@wave-dash

Description

@wave-dash

smartcrop --width 100 --height 400 %1 %~n1_out%~x1

When I run this command on kitty.jpg from the test suite, the output image is 99x400.

2023-03-19_22-47-36_dopus_crop

I assume this happens because of the skewed aspect ratio of the requested crop, I've encountered a similar "missing pixel" problem when cropping in Photoshop. Is there a way to force exact dimensions for the output?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions