I tried to define several crop zones on one unique image by using css
classes instead of id :
<img src="myimage.jpg" class="crop_zone_1 crop_zone_2" />
and initializing Jcrop through javascript like this :
$(window).load(function(){
var api = $.Jcrop('.crop_zone_1',{
setSelect: [ 100, 100, 200, 200 ],
bgColor: '#FFF',
bgOpacity: 0.6
});
var api2 = $.Jcrop('.crop_zone_1',{
setSelect: [ 10, 10, 200, 150 ],
bgColor: '#FFF',
bgOpacity: 0.1
});
It shows my image two times with buggy crop areas.
So my questions are :
- Is it possible to manage several crop zones on a unique image with Jcrop ?
- If so, what is the way to do it ? I didn't find any information about
this in the documentation
Thanks.
Damien
--
You received this message because you are subscribed to the Google Groups "Jcrop Development Discussion" group.
To post to this group, send email to jcro...@googlegroups.com.
To unsubscribe from this group, send email to jcrop-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jcrop-dev?hl=en.