Hi there,
is there a way to rebind the viewport and boundary size and shape via a button click?
I have tried the following but no luck:
reader.onload = function (e) {
croppie.bind({
url: e.target.result,
viewport: {
width: 350,
height: 180,
type: 'rectangle'
},
});
$('#cropModal').modal('show');
}