$('#confirm').on('click', function(e) {
var $this = $(this);
var data = $this.data();
var result;
data = $.extend({}, data);
result = $image.cropper(data.method, data.option, data.secondOption);
$('#imageModal').modal().find('.modal-body').html(result);
$download.attr('href', result.toDataURL('image/jpeg'));
})
when i debug the getCroppedCanvas method at your demo page http://fengyuanchen.github.io/cropper/
i found you get the canvas element for result variable. but i got this. like the pic.
how could i get the canvas. other code is just like your demo
jquery version is 3.2.1
cropper version is 3.0.0-rc.1(jquery version)
js code here.
when i debug the
getCroppedCanvas
method at your demo pagehttp://fengyuanchen.github.io/cropper/
i found you get the
canvas
element for result variable. but i got this. like the pic.how could i get the canvas. other code is just like your demo
jquery version is 3.2.1 cropper version is 3.0.0-rc.1(jquery version)
thanx