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

Default Stencil with Aspect Ratio and Maximum Width #39

Closed
NRiebesel opened this issue Mar 7, 2020 · 2 comments
Closed

Default Stencil with Aspect Ratio and Maximum Width #39

NRiebesel opened this issue Mar 7, 2020 · 2 comments

Comments

@NRiebesel
Copy link

Hello,

firstly: Great component, thanks!
Could you provide an example for a cropper configuration with a default stencil having maximum width of 100% of the image but also sticks to a custom aspect ratio (for e.g. 16/9).

I tried a few things and also searched through the docs. Using setCoordinates, ready event , stencilProps, but I cant get it to work. Thank you!!

@Norserium
Copy link
Collaborator

Norserium commented Mar 7, 2020

Hello, @NRiebesel! If I understood you correctly, this is what you want to get.

@NRiebesel
Copy link
Author

Wow, it's as simply as that.
It works. Thanks a lot!

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