Python Forum

Full Version: piexif rewrite exif data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A python newbie... I have OpenDroneMap running on a cloud server running Ubuntu 16.04. I have a group of pictures taken with a Mavic 2 Pro. A known issue with this drone is that the GPS altitude above sea level is unusable. It causes processing to fail in OpenDroneMap. I would like some help to use piexif to rewrite the exif GPS altitude above sea level.

This would be need to add a number (the local elevation above sea level) to the relative altitude in the exif data and write the result to the GPS altitude above sea level.

Ideally this would do this for all images in a directory.

I'm going to a local python user group meeting this weekend and hope to discuss it there as well.
recently I have done a project for a client that do exactly that. It's quite straightforward. here is SO question that do exactly that https://stackoverflow.com/a/45353763/4046632
piexif docs are usefull too. I also found this extremely useful: https://www.sno.phy.queensu.ca/~phil/exi...s/GPS.html
exif2 reference:http://www.exiv2.org/tags.html
Outstanding and thanks for the quick response... now all I have to do is get it to do all the images in a directory ;)