We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The combination of aspectRatio and minSize is buggy when the ratio is vertical.
cropper with aspectRatio: 1.3333333333333333 minSize: [ 300, 400, "px" ] startSize: [ 1200, 675, "px" ]
The minimum crop result should be 300 * 400 But the cropper "snaps" from 400 * 533 to 300 * 533
The text was updated successfully, but these errors were encountered:
I fixed it. The constrainToSize function in box.js has a bug on line 212.
constrainToSize
minHeight = minHeight * ratio; must be minHeight = minWidth * ratio;
minHeight = minHeight * ratio;
minHeight = minWidth * ratio;
Sorry, something went wrong.
No branches or pull requests
The combination of aspectRatio and minSize is buggy when the ratio is vertical.
cropper with
aspectRatio: 1.3333333333333333
minSize: [ 300, 400, "px" ]
startSize: [ 1200, 675, "px" ]
The minimum crop result should be 300 * 400
But the cropper "snaps" from 400 * 533 to 300 * 533
The text was updated successfully, but these errors were encountered: