Croppie icon indicating copy to clipboard operation
Croppie copied to clipboard

rebind the viewport and boundary on button click

Open ColdstarJoey opened this issue 2 years ago • 0 comments

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'); }

ColdstarJoey avatar Dec 11 '23 13:12 ColdstarJoey