Heic images support for android

Hello Ionic community,

I am facing a problem in my Ionic React Capacitor v5 app where I can upload a HEIC image using iOS. The upload process works perfectly, and I can see these images on my iOS devices without any issues. However, I am unable to view these images on my Android devices.

I am using multer-s3 for uploading the images.

Any suggestions or solutions to this problem would be greatly appreciated.

Thank you!

You can use the convertHeicToJpeg(…) method of the Capacitor File Picker plugin to convert the image to jpeg format before upload.

Is there any way to handle this issue without conversion?

No, especially older Android versions does not support the heic format.

But I am not able to see images on my Android devices, even though I have the latest Android versions (13, 14).

If you are talking about the WebView: Yes, the WebView under Android does not support the heic format at all.