I use the image-cropper in my website too. It works well.
But now, I want to hide the Cropper-Selection-Frame for example, when
an user has clicked at a button.
Have you an idea?
That`s the sourcecode in my html-side:
<script language="javascript" type text="text/javascript">
/*<![CDATA[*/
Event.observe( window, 'load', function() {
new Cropper.Img(
'bilde',
{
ratioDim: {
x: 153,
y: 188
},
displayOnInit: true,
onEndCrop: onEndCrop
}
);
} );
function onEndCrop( coords, dimensions ) {
$( 'x1' ).value = coords.x1;
$( 'y1' ).value = coords.y1;
$( 'x2' ).value = coords.x2;
$( 'y2' ).value = coords.y2;
$( 'width' ).value = dimensions.width;
$( 'height' ).value = dimensions.height;
}
</script>
Greetings from Hanover - Germany
Damian
Calling the cropper.remove() should just work, I'd take a look at the
examples that use that to see if it meets your needs.
-D
On Mar 25, 10:22 am, Damian Czichon <damian.czic...@googlemail.com>
wrote:
--
You received this message because you are subscribed to the Google Groups "javascript-image-cropper-ui" group.
To post to this group, send email to javascript-im...@googlegroups.com.
To unsubscribe from this group, send email to javascript-image-cr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javascript-image-cropper-ui?hl=en.