Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep resize enabled with cropperStaticWidth/cropperStaticHeight #666

Open
majortomate opened this issue Jan 2, 2025 · 1 comment
Open

Comments

@majortomate
Copy link

Is there a way to keep the resize enabled even with having cropperStaticWidth/cropperStaticHeight set? I think this is a nice thing to have since you want to be able to dinamically set the cropper height/width with user input in a form field for example:
image

@Mawi137
Copy link
Owner

Mawi137 commented Jan 7, 2025

The cropper input should be used for that, but it's relative to the image displayed on screen and not the actual size of the image. So you should calculate it using the sourceImage dimensions .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants