Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert HEIF,HEIC,HEVC format to PNG before convert to Base64 #2125

Open
gkasireddy202 opened this issue Jan 10, 2025 · 0 comments
Open

Convert HEIF,HEIC,HEVC format to PNG before convert to Base64 #2125

gkasireddy202 opened this issue Jan 10, 2025 · 0 comments

Comments

@gkasireddy202
Copy link

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.40.3
  • react-native v0.73.7

Platform

Tell us to which platform this issue is related

  • iOS

Expected behaviour

I am converting the base64 format from the image.uri for server requests.
The file has been saved like the sample.png in the back end.
I need to convert the file to PNG before converting the base64 format and sending it to the server.

Actual behaviour

When the user opens the saved file from the back end on Windows.Example:sample.png
But HEIF, and HEIC,HEVC file formats are not open in the Windows operation system.
I'm sharing the error below.
sorry photos can't open this file because the format is currently unsupported or the file is corrupted.

Steps to reproduce

  1. open picker.

  2. select HEIF,HEIC, HEVC from the gallery

  3. Convert the file to base64 and open the file on Windows system.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant