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

How to set the minimum and maximum values ​​for zoom #81

Open
linshuzhen opened this issue Dec 10, 2024 · 1 comment
Open

How to set the minimum and maximum values ​​for zoom #81

linshuzhen opened this issue Dec 10, 2024 · 1 comment

Comments

@linshuzhen
Copy link

Fixed cropper, background image setting minimum and maximum scaling values

@Mauladen
Copy link

Mauladen commented Feb 10, 2025

@linshuzhen Hi, I solved this problem by installing the minHeight={16} minWidth={16} props for the <Cropper> component, you can also set the maximum size, this will limit the zoom.

It is also implemented in the Twitter variant.
https://advanced-cropper.github.io/react-advanced-cropper/docs/showcase

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