odyniec / imgareaselect

ImgAreaSelect is a jQuery plugin for selecting a rectangular area of an image. It allows web developers to easily implement image cropping functionality, as well as other user interface features, such as photo notes (like those on Flickr).
http://odyniec.net/projects/imgareaselect/
686 stars 197 forks source link

Responsive, Resized image? #61

Open notflip opened 10 years ago

notflip commented 10 years ago

Appearantly when you adjust the size of the image with css, like

img {width: 100%;}

Then the cutout part isn't correct, Which i understand, but is there some way for large images to be able to fit onto the screen and be cutout right anyway?

Thanks!

veksen commented 10 years ago

Pass the true image size as parameters :

$(selector).imgAreaSelect({
    imageWidth: 1920,
    imageHeight: 1080
});
Himashukla commented 5 years ago

You just saved my day. @veksen thank you so much.