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

expand image to fit container

Open tonypeng opened this issue 1 year ago • 1 comments

as mentioned in #108, i've set a width on the parent container:

<div style={{width: 400}}>
  <ReactCrop ...>
    <img ... />
  </ReactCrop>
</div>

This works well when the image is larger than the container (the image is resized downward to fit in the container), but when the image is smaller than the container, it doesn't scale up to fit the container. Any way to accomplish this behavior?

tonypeng avatar Aug 28 '24 09:08 tonypeng