ValentinH / react-easy-crop

A React component to crop images/videos with easy interactions
https://valentinh.github.io/react-easy-crop/
MIT License
2.27k stars 167 forks source link

Croparea is not restored after zoom #547

Open gerbensnellenberg opened 1 month ago

gerbensnellenberg commented 1 month ago

Describe the bug I use the cropper with a container that has the same size as the cropper, both width as heigth. When rotating an image, the croparea will resize to the dimensions of the rotated image (smaller). The croparea does not return to it's initial size, for example when zooming in.

To Reproduce

  1. Rotate (2nd scroller) the image 90deg, the croparea will become smaller
  2. Zoom in (1st scroller)

Expected behavior I would like to see that the croparea would expand to the size of the container if you zoom in on the rotated image. This could also be achieved when you have the possibilty to change the size of the cropArea.

https://codesandbox.io/p/sandbox/sharp-archimedes-32pzkk

ValentinH commented 1 month ago

Hi,

The sandbox link is broken apparently.