JavaScript-Load-Image
JavaScript-Load-Image copied to clipboard
maxWidth/maxHeight not working with aspectRatio
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?