ValentinH / react-easy-crop

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

Allow setting padding for crop area #538

Closed coproductions closed 6 months ago

coproductions commented 6 months ago

Is your feature request related to a problem? Please describe. When restrictPosition is set to false, it would be great if there was a way to add some padding to the sides/height of the crop area. Currently when the image already has the correct aspect ratio or similar it fills out the entire crop area horizontally.

Screenshot 2024-05-14 at 8 31 39 AM

Describe the solution you'd like It would be great to allow for there always to be a certain amount of grey border around the image in the crop area, to make it clear that they can zoom in both directions.

screenshot_2024-05-13_at_6 16 59___pm

ValentinH commented 6 months ago

Thanks for using the issue template! This issue might help you: https://github.com/ValentinH/react-easy-crop/issues/502

coproductions commented 6 months ago

Yes that helped. thanks