Croppr.js icon indicating copy to clipboard operation
Croppr.js copied to clipboard

Can minsize be based on the pixel size of image?

Open iamyogik opened this issue 5 years ago • 2 comments

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

iamyogik avatar Jul 23 '18 06:07 iamyogik

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)

marek1 avatar Aug 10 '18 08:08 marek1

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..

zoomtronic avatar Apr 16 '20 22:04 zoomtronic