Closed jordangrant closed 2 years ago
@jordangrant I feel like I must be missing something. When I use the circular cropper the base64 image is a square with white background around my circular image. Is this expected?
@mahcloud I want to preserve a transparent background.
@jordangrant but it comes back as a jpeg. It can't be transparent as a jpeg, right? I'm seeing
"mime": "image/jpeg"
@jordangrant thanks for responding so quickly, btw
@mahcloud That's correct. Here's a video https://youtu.be/DyBPipfPk4M
@jordangrant I think I see the confusion. We are using the cropperCircleOverlay setting. If we use the square cropper and then manually style after, it works fine. We just really like the circular cropper UI for our customer, but we will have to stop using it if it provides white background.
black background for android. Why not preserve png format and transparent background?
Any plan to fix it?
Any plan to fix it?
Solved here https://github.com/callstack/react-native-image-editor/issues/37#issuecomment-694710262
Version
Tell us which versions you are using:
Platform
Tell us to which platform this issue is related
Expected behaviour
Cropping a png returns another png
Actual behaviour
cropping png fills the transparent layer with a white bg
Steps to reproduce
feed ImagePicker.openCropper a remote uri to a png
crop
Attachments
// stacktrace or any other useful debug info
Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate