osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.54k stars 1k forks source link

Photo notes have no EXIF data (Galaxy A7) #8256

Open Discostu36 opened 4 years ago

Discostu36 commented 4 years ago

On my phone (Samsung Galaxy A7 2018, Android 9) photo notes taken with Osmand contain no exif information (neither date nor location). I learned in the German Telegram channel that it works for other users. Can you investigate?

I tested with internal photo app and system photo app.

vshcherb commented 4 years ago

It depends on system camera settings, OsmAnd doesn't process or change photos received by API except changing it's name

Discostu36 commented 4 years ago

My system camera is set to geotag photos.

Discostu36 commented 4 years ago

BTW, I don't have such problems with other apps. If I take a photo with the Adobe Lightroom App, for example, all EXIF tags are present. So the problem must be at how Omsand does communicate with the telephone's camera.

chris68 commented 2 years ago

Same problem for me. The GPS Tags are written, but not the EXIF:CreateDate and/or EXIF:DateTimeOriginal.

However, as @vshcherb mentioned this seems to be rather a problem of the camera api which I actually had in another project as well.

In my case, the IFD0:DateTime has always been written, but the EXIF:DateTimeOriginal and EXIF:DateTimeDigitized not always.

The only way would be to supplement/write this EXIF data in the program osmand itself - which would be feasible (there seems to be an interface, https://developer.android.com/reference/android/media/ExifInterface) but could be considered out of scope of the solution osmand.

Since the date is apparently in the jpeg i would consider it a bug of the camera api and one needs to fix it later. A fix in osmand would be nice but also dangerous - you are not supposed to mingle with Exif data.