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

Can minsize be based on the pixel size of image? #21

Open
iamyogik opened this issue Jul 23, 2018 · 2 comments
Open

Can minsize be based on the pixel size of image? #21

iamyogik opened this issue Jul 23, 2018 · 2 comments

Comments

@iamyogik
Copy link

I have tried returnMode: 'real' and minSize : [300,300,'px'] but the point is even if the photo pixel size os 1600,900 the cropper takes the minsize based on the div or elemnt dimensions i.e. canvas dimensions. Can u please tell me how to fix the minsize based on the image pixels and not thr canvas pixels. Reply would be appreciated

@marek1
Copy link

marek1 commented Aug 10, 2018

i had the same issue. what i did is to call the moveTo method immediately after initialising Croppr - that caused a 'reset' of the cropping area based on the actual image size (rather than on the size of the canvas/div)

@zoomtronic
Copy link

Did you find something to make it work ?
Calling moveTo is not working for me, the minsize is still taking the container size and not real size of image..

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

3 participants