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

Bootstrap Model On Close, Crop popup issue on Close #90

Open tutorialdrive opened 7 years ago

tutorialdrive commented 7 years ago

When I open crop image in bootstrap, its working fine (image 1).

Image 1 issue_20170905_arfurniture_2

But when I close model (by pressing close button) mode goes close but crop selection still there. Please refer image 2.

Image 2 issue_20170905_arfurniture

I can drag selection area after that and it change values as well. Please refer image 3

Image 3 issue_20170905_arfurniture_1

paulkd commented 7 years ago

$('#your-image').imgAreaSelect({ remove: true });

paulkd commented 7 years ago

If you instantiate with ias = $('#your-image').imgAreaSelect({ handles: true, ... more options ... }); you can also

ias.setOptions({hide: true});