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

Is there a way to set a fixed aspect ratio to the cropper? 🤔 #18

Open
sntlln93 opened this issue Jun 14, 2021 · 1 comment
Open

Is there a way to set a fixed aspect ratio to the cropper? 🤔 #18

sntlln93 opened this issue Jun 14, 2021 · 1 comment
Assignees

Comments

@sntlln93
Copy link

The cropper's outline its allways square unless the fixed option is set to false. I want to set the cropper to a fixed aspect ratio, can i do that? If not, im willing to make a PR, just need to someone point me in the right direction regarding what files should i take a look.

@sntlln93 sntlln93 changed the title Is there a way to set the aspect ratio of the cropper? 🤔 Is there a way to set a fixed aspect ratio to the cropper? 🤔 Jun 14, 2021
@peterver
Copy link
Owner

@sntlln93 Thanks for your question!

At the moment this is not possible, I built this library for a couple of small usecases a while ago. However, I will most likely do some work on it in the coming weeks to introduce some much-needed improvements (such as usage of css variables for theming, more modern build approach, additional configuration options, etc).

I'll be noting this one down to take in as an improvement.

Is there a format you would suggest for the ratio configuration (eg: '16:9')?

@peterver peterver self-assigned this Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants