Open thebpmgroup opened 5 years ago
Did you manage to resolve this issue... I am trying to achieve something similar without having to destroy the existing croppie and then re-initialize and bind ?
Actually, i see there is a PR to add a method to change the viewport size at runtime
How can one change the ViewPort size, after say an image has already been loaded?
What I am trying to do is provide an image cropper so the user can open any image from their local storage, and the viewport shows the current size of the image (from a selected template size from a drop down list) to be output.
So for example the user selects the template size of 1080 x 720 and loads and image that is 1920 x 1080. As the image is larger than the viewport (selected template size), the viewport shows the actual size of the image that will be uploaded and the user can crop or resize to fit this boundary.
The user may change the size of the template by choosing a different template from the drop down list.
So I need to be able to change the size of the viewport in real time. How can this be done?