smartcrop-cli icon indicating copy to clipboard operation
smartcrop-cli copied to clipboard

Cropped images are sometimes 1 pixel too small

Open wave-dash opened this issue 1 year ago • 0 comments

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?

wave-dash avatar Mar 21 '23 02:03 wave-dash