innostudio / fileuploader

Beautiful and powerful HTML file uploading tool. A jQuery, PHP and Node.js plugin that transforms the standard input into a revolutionary and fancy field on your page.
141 stars 25 forks source link

Can I change the ratio of the editor dynamically? #60

Closed lander16 closed 4 years ago

lander16 commented 4 years ago

Hi I want to change the ratio of the editor whenever the image is rotated, can this be done? I tried with the callback in thumbnails with item.popup.html.on('click', '[data-action="rotate-cw"]', function(e) {

and then setting

item.editor.cropper.ratio

but doesn't work, seems like the editor doesn't hold this property.

Any way to achieve this?

Thanks,