Pictures taken with Android front camera are corrupt.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By blurrred

Any pictures taken with my phone’s front camera are unable to be loaded in Godot. They appear fine in other programs.

Phone: Galaxy S8 running Android 9

Here is a small sample project with a test image that does not load: image rotation example.tar.gz - Google Drive

:bust_in_silhouette: Reply From: SnapCracklins

On my Iphone when i click your file, i get an “unsupported file type” message. You may have a format that is unsupported. Try dropping the image in a mobile editor like Canva, save it, and see what happens. Also, are you using one of those weird “live” photos? Thode kind of files are usually a weird format that does not play nice with Godot. (For instance, Apple uses HEIC as an extension for these types).

Also fun fact - if you delete the file extension when uploading to Google Drive it will screw up when it tries to load it. I use Drive a lot and have made this mistake easily.

I’ve noticed that I can’t load the images if they have any metadata. Do you know of any way to load images with metadata or how to delete the metadata for the loaded image? I need to be able to do this without altering the original file on the user’s computer.

blurrred | 2022-04-05 20:08

Not sure how your phone is set up but there should be a option in the gallery somewhere. There is also this article here:
How to Remove Metadata

SnapCracklins | 2022-04-05 20:36

I need to be able to do this programmatically so that users can see the images on their phones even if they have metadata.

blurrred | 2022-04-05 22:37