exif tags out of order

Started by banana123, December 28, 2023, 09:21:42 AM

Previous topic - Next topic

banana123

hi,
Im trying to copy exif tags from one image to another.
It seems that after the copy, the order of the exif tags is different from the original photo it was taken from.
I noticed that it happens when the exif has the GPSImgDirection and GPSImgDirectionRef tags.
Is there any way to make sure the order is maintained?

thanks!!

Phil Harvey

No.  ExifTool writes EXIF correctly.  There is no way to force it to write tags in the wrong order.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

FAQ #13 might apply here.

The order shouldn't matter as long as the program you are using reads EXIF data correctly. There are programs that read data incorrectly and require the data to be in a specific location.  For example, there's a badly written mapping program that was mentioned in these forums some time ago which only reads the GPS data in a very specific way and broke when exiftool changed anything.  Such programs should be avoided, as there is no telling what other shortcuts the lazy/bad programmers will use.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

wywh

#3
Quote from: banana123 on December 28, 2023, 09:21:42 AMIs there any way to make sure the order is maintained

"To most closely approximate the structure of the original metadata, the EXIF should be copied as a block"

exiftool -tagsfromfile SOURCE_FILE -exif TARGET_FILE
https://exiftool.org/forum/index.php?topic=14357.msg77354#msg77354

But I'd rather use the correct than the original order.

- Matti