tapmodo / Jcrop

Jcrop - The Javascript Image Cropping Engine
https://jcrop.com
Other
4.31k stars 938 forks source link

Image distorded when displaying in a Bootstrap 3 Modal #146

Open yanickrochon opened 10 years ago

yanickrochon commented 10 years ago

Any image loaded inside a a Bootstrap modal is enlarged or distorded.

Also, anyone maintaining this project? Haven't been updated in a long time!

amseledka commented 10 years ago

Having same issue

yanickrochon commented 10 years ago

Yes! I forgot to mention that you need to reset the CSS for the image, by removing width:100%; or something like that... I'll update it if you don't find it first :) (Almost forgot about this.)

amseledka commented 10 years ago

@yanickrochon thanks for update! Could you please check, because I haven't found that.

what i noticed that for horizontal (landscape) images it takes the longest image side as height (when the longest side is actually width)

armanim commented 9 years ago

same problem on my project

advantgroup commented 9 years ago

Setting width to auto fixes distortion of the preview.

matthewdowney commented 8 years ago

Thank you so much, this is just the trick I was looking for!