Circular crop area, without overflow #299
-
Hey there, Just wondering if it’s possible to set a circular crop area without showing the image overflow? I’m trying not to show the overflow and just keep it all circular. Is this at all possible? In the above screenshot you can see a circular sticker (which is an SVG) and on top I have the Cropper. Have been trying to override the default styles with Any help or pointers appreciated. — Vincent |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I think this is possible by changing the opacity of the dark part of the crop area: https://github.com/ricardo-ch/react-easy-crop/blob/main/src/styles.css#L48 |
Beta Was this translation helpful? Give feedback.
-
This was an issue with Safari 15 (Webkit). There is a bug where an outer container of No other browser engine seems to encounter that. I fixed this by adding a secondary div inside the absolute positioned container and applying Thanks for all the help ✌️ |
Beta Was this translation helpful? Give feedback.
This was an issue with Safari 15 (Webkit). There is a bug where an outer container of
position: absolute
doesn’t apply aoverflow: hidden
with aborder-radius: 50%
.No other browser engine seems to encounter that.
I fixed this by adding a secondary div inside the absolute positioned container and applying
position: sticky
plus the above mentioned styles — not great, but it fixed the issue.Thanks for all the help ✌️