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

locking the aspect ratio #18

Open
PavieOlivier opened this issue Mar 7, 2023 · 5 comments
Open

locking the aspect ratio #18

PavieOlivier opened this issue Mar 7, 2023 · 5 comments

Comments

@PavieOlivier
Copy link

Is it possible to lock the aspect ratio
so that the user does not resize the crop box?

@monsieurtanuki
Copy link
Contributor

Is it possible to lock the aspect ratio

@PavieOlivier You can already lock the aspect ratio.
Are you rather talking about the crop area size, like "I want the crop area to have this size, and the user can only move this area"?
The way things work now is: if you drag a corner, the grid gets resized according to the aspect ratio.
I guess a parameter could be added to the controller, like "no user resize on corners".

@deakjahn What do you think of that? It wouldn't take me too long to code that.

@PavieOlivier
Copy link
Author

Are you rather talking about the crop area size, like "I want the crop area to have this size, and the user can only move this area"?

Yes this is exactly what I am looking for :)

@PavieOlivier
Copy link
Author

I have a question @monsieurtanuki
I think the implementation for rotating the image turns it at 90 degrees every time.
Is there a way to update the zoom and rotation value using a slider?

@monsieurtanuki
Copy link
Contributor

Is there a way to update the zoom and rotation value using a slider?

@PavieOlivier I started working on this package because the UI was easy - and because other packages I used were more refined but with bugs (e.g. you can zoom in but then not zoom out).
The features you're suggesting go well beyond the current status of the package.

@PavieOlivier
Copy link
Author

Yes, You're right :)
I will see if I can implement that one on my own and also raise a Pr

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