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

Fill image after rotate #69

Open
annebione opened this issue Jul 16, 2024 · 0 comments
Open

Fill image after rotate #69

annebione opened this issue Jul 16, 2024 · 0 comments

Comments

@annebione
Copy link

annebione commented Jul 16, 2024

Hello,

I'm having an issue in figuring out how to make the cropper area fill the entire image after rotation. As per the docs, I've used the defaultSize prop to great results on initial image load, as you can see:

image

However, after rotation, the cropper area keeps the original ratio, despite the image w/h changing drastically.

image

TL;DR: I'd like to figure out a way to make the cropper area to fill the entire image size despite rotation.

I understand the transformImageAlgorithm prop passes the state object to the algorithm where I could find the current image proportions, but I'm having trouble understanding how I could change the cropper on rotate.

Can anyone help? Thanks in advance.

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