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
Hi,
Can you make an optional to set width and height for the cropper ?.
For example I want crop an image with width and height 800*600, I don't want the cropper to be that big.
Thanks.
The text was updated successfully, but these errors were encountered:
They are optional now and can be determined by the new minConstraints prop. Check out this commit: 58ac999
minConstraints
Sorry, something went wrong.
@shichongrui hi. Sorry looks like I explained it wrong. What I mean is the cropper canvas.
I've set
<Cropper ref='crop' image={this.state.cover} width={1920} height={1080} onImageLoaded={this.coverLoaded} minConstraints={[400,225]} />
But the div with className 'cropper' still show 1920 * 1080
No branches or pull requests
Hi,
Can you make an optional to set width and height for the cropper ?.
For example I want crop an image with width and height 800*600,
I don't want the cropper to be that big.
Thanks.
The text was updated successfully, but these errors were encountered: