react-image-cropper icon indicating copy to clipboard operation
react-image-cropper copied to clipboard

Dimensions Config

Open JamesDorrian opened this issue 6 years ago • 1 comments

If I put the <Cropper /> inside a div with width 1000px, the cropper takes the image src and stretches it to width 1000px.

Is there a way around this?

JamesDorrian avatar Mar 02 '18 19:03 JamesDorrian

The cropping component currently takes the width to be 100%, thus filling the parent container, regardless of the image's original dimensions.

I have a fix available here for anyone who is interested: https://github.com/JamesDorrian/react-image-cropper-dynamic

JamesDorrian avatar Mar 04 '18 12:03 JamesDorrian