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

Loading images into the crop box #413

Open Alaricus opened 4 months ago

Alaricus commented 4 months ago

Hello,

Is it possible to load the image fully into the crop box regardless of it's height/width?

Currently it looks like this, only fitting within the vertical bound: image

Instead, I would like for it to load in like this - fully fitting within the the box based on the longest dimension, be it landscape or portrait: image

Or, alternatively, to be able to zoom out in such as way as to fit the image fully within the crop box.