js-image-carver icon indicating copy to clipboard operation
js-image-carver copied to clipboard

output should keep aspect ratio

Open luroc opened this issue 4 years ago • 0 comments

When both dimensions are set to the same percentage, the output image should retain the aspect ratio.

Example:
Choose 500x500px image. Put width and height to 80% and run the carving algorithm.

Expected result:
Output image is 400x400px

Actual result: Output image is 400x401px

luroc avatar Apr 17 '21 00:04 luroc