Getting an error when copying exif data from DJI drones

Started by santfloyd, August 11, 2023, 10:33:33 PM

Previous topic - Next topic

santfloyd

Hello, I´m getting the following error when trying to copy exif data from .DNG images to it´s corresponding PNG images:
Error: [minor] IFD0 pointer references previous IFD0 directory
warning: [minor] Possibly incorrect maker notes offsets (fix by 13740?)
and none exif being successfuly copied.

I´m using the following command:
.\exiftool -tagsfromfile %d%f.DNG -r -ext PNG dir
 in order to copy all tags, but actually I´m only interested in the GPS and basic image exif data such as exposure settings of the camera. Thank you in advance.

StarGeek

Try adding the -m (-ignoreMinorErrors) option.

Also be aware that when you don't specify what you want copied with the -TagsFromFile option, the data might get moved around.  See FAQ #9

Try this command
exiftool -m -tagsfromfile %d%f.DNG -EXIF:All -r -ext PNG dir

If that doesn't work, a sample problem DNG file would be helpful.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

santfloyd

Thanks for the reply. The command just worked and no error were prompted on console, but may be there is something I´m missing because the output files, besides having the extension png_original, sitll have no exif copied. I want to attach one DNG sample but the storage space in the forum is very limited... here are 2/3 of the compressed sample.


santfloyd

Here the third part of the sample image. Sorry to share the sample that way...

StarGeek

* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

StarGeek

Quote from: santfloyd on August 12, 2023, 12:55:18 PMbesides having the extension png_original

This is the backup file as described in the second paragraph under Description in the docs.  You can suppress the creation of backup files with the -overwrite_original option.

Quotesitll have no exif copied.

Did you check with exiftool to see if the data was copied or with something else.  Very few programs have support for any metadata in PNG files.  Run this command on the PNG files to see if the data was copied.
exiftool -G1 -a -s -Exif:all file.png
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

santfloyd

Thank you very much for the guidance. With the second command I could read the metadata successfully copied from the DNG to PNG

exiftool -G1 -a -s -Exif:all file.png

I couldn´t saw any change because I was using the normal details tab on windows properties menu and any change was visible there.

My main goal is to use GPS exif data on each photo to help reconstruct a model in case i don´t have ground control points for reference. But still is not clear to my if software like Open Drone Map or Agisoft can access that specific exif data from the PNG after the tags enrichment. I have to experiment. Thank you again.