JavaScript-Load-Image icon indicating copy to clipboard operation
JavaScript-Load-Image copied to clipboard

maxWidth/maxHeight not working with aspectRatio

Open anisabboud opened this issue 2 years ago • 0 comments

Hello and thank you for this nice library.

I noticed that setting maxWidth/maxHeight and aspectRatio together doesn't work.
The image is cropped to the requested aspect ratio, but not shrunk to the specified width/height.

Specifying only one works (only aspectRatio => image cropped, only maxWidth/maxHeight => image shrunk).

Is that the intended behavior or a bug?

anisabboud avatar Mar 12 '22 11:03 anisabboud