Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
piexif rewrite exif data
#1
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.
Reply
#2
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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Outstanding and thanks for the quick response... now all I have to do is get it to do all the images in a directory ;)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  |SOLVED] Glob JPGs, read EXIF, update file timestamp? Winfried 5 5,445 Oct-21-2021, 03:29 AM
Last Post: buran
  Optmized way to rewrite this very slow code liva28 0 2,201 Jul-18-2021, 12:16 PM
Last Post: liva28
  Python with win32com and EXIF renaming files. Amrcodes 4 6,102 Apr-03-2021, 08:51 PM
Last Post: DeaD_EyE
  Cleaner way to rewrite fakka 5 4,802 Dec-05-2019, 04:53 AM
Last Post: stullis
  How do I rewrite this .bat file code onto Python? SteampunkMaverick12 4 4,432 Nov-02-2019, 11:28 PM
Last Post: snippsat
  Rewrite a function to make it work with 'bottle-pymysql' nikos 1 2,979 Feb-26-2019, 02:59 PM
Last Post: nikos
  EXIF from RAW RuBrain 1 4,382 Oct-10-2018, 07:05 PM
Last Post: nilamo
  Not having to rewrite 'obj.' on each line beuaaa 4 4,723 Sep-30-2018, 02:21 AM
Last Post: micseydel
  How to rewrite image file name based on ocr data.txt kevinchr 0 5,043 Apr-16-2018, 07:09 PM
Last Post: kevinchr
  how do i rewrite this code to give me 10 outputs BlackPimpernel 2 3,972 Mar-29-2018, 11:29 AM
Last Post: BlackPimpernel

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020
This forum uses Lukasz Tkacz MyBB addons.
Forum use Krzysztof "Supryk" Supryczynski addons.