fengyuanchen / cropper

⚠️ [Deprecated] No longer maintained, please use https://github.com/fengyuanchen/jquery-cropper
MIT License
7.75k stars 1.74k forks source link

MaxWidth and MaxHeight issue with portrait images #984

Closed BGitlin337 closed 4 years ago

BGitlin337 commented 6 years ago

I've been working with build release 4.0.0-beta and am having issues using maxWidth and maxHeight. It seems like this update fixes the functionality of this feature but only with landscape images. If I add the maxWidth and maxHeight attributes and then crop a portrait image above the max width or height, I get a distorted crop with black bars on the sides. If I rotate the image to be oriented as landscape, it works perfectly. This is an extension of issue #966 that I previously reported.

fengyuanchen commented 6 years ago

Try the jquery-cropper package please.