MarcusWolschon / osmeditor4android

Vespucci is a OpenStreetMap editor for Android
http://vespucci.io
Other
372 stars 83 forks source link

Recognize .HEIC #2056

Closed jidanni closed 1 month ago

jidanni commented 1 year ago

The photo layer ignores .heic files, even if they contain exif location data just like .jpgs.

simonpoole commented 1 year ago

What are HEIC files?

jidanni commented 1 year ago

https://www.adobe.com/creativecloud/file-types/image/comparison/heic-vs-jpeg.html . Saves space here on Samsung stock camera.

Currently sharing one with Vespucci gives error: photo content not found... Must convert to jpg first.

simonpoole commented 1 year ago

You'll need to provide a sample for testing. Prior to Android 9 there was no native support for such images, and it needs to be seen if all the necessary libraries support the format.

simonpoole commented 1 year ago

Currently doesn't seem to be fully supported in https://github.com/davemorrissey/subsampling-scale-image-view See https://github.com/davemorrissey/subsampling-scale-image-view/issues/559

jidanni commented 1 year ago
wget https://upload.wikimedia.org/wikipedia/commons/2/2d/Chunu_Bay%2C_Kanaga_Island%2C_Alaska.jpg
convert Chunu_Bay,_Kanaga_Island,_Alaska.jpg C.heic #imagemagick, alas wiped out EXIF GPS coordinates 
exiftool -overwrite_original -TagsFromFile Chunu_Bay,_Kanaga_Island,_Alaska.jpg C.heic
exiftool C.heic #shows EXIF coordinates
simonpoole commented 1 year ago

You can append it to the issue.

jidanni commented 1 year ago

I am on a little modem line and can't upload big images these months.

simonpoole commented 1 year ago

There's no hurry.

jidanni commented 1 year ago

h.heic.gz You'll need to unzip it.

simonpoole commented 1 year ago

h heic