mosch / react-avatar-editor

Small avatar & profile picture component. Resize and crop uploaded images using a intuitive user interface.
https://react-avatar-editor.netlify.app/
MIT License
2.35k stars 369 forks source link

Rotation Will Break the Crop Boundary Movement #377

Open adam-dill opened 2 years ago

adam-dill commented 2 years ago

Assuming we do not want empty pixels, rotation of the image will allow the user to crop the image in a way that does not fill the entire crop boundary. I don't know what sort of control would be needed since it is dictated on the zoom. Perhaps a 'keepFill' prop that will automatically scale the image if it falls below the boundary at any point.