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 get the cropped image client-side? #419

Open
anshul-kai opened this issue Aug 25, 2024 · 1 comment
Open

How to get the cropped image client-side? #419

anshul-kai opened this issue Aug 25, 2024 · 1 comment

Comments

@anshul-kai
Copy link

getImage returns the original image ignoring scale and crop/position.

getImageScaledToCanvas returns the original image scaled down to the canvas dimensions, again ignoring both scale and crop/position.

I'm working through a hacky approach to generate the cropped image client-side. Isn't there an easy way to provide this via the current API?

@anshul-kai
Copy link
Author

For anything beyond a baseline use case, use react-advanced-cropper.

This library is full of bugs if advanced features like scaling or cropping are used.

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

1 participant