Copying timezone from XMP to EXIF

Started by José Oliver-Didier, May 10, 2023, 01:54:06 PM

Previous topic - Next topic

José Oliver-Didier

Hello,

How can I set the 3 EXIF timezone offset values (OffsetTime, OffsetTimeOriginal, OffsetTimeDigitized) using the XMP timezone value in the XMP Date/Time Digitized, if available?

[XMP-exif]      Date/Time Digitized             : 2023:04:13 10:42:25+03:00
I know you can write to all three of these tags using:

-EXIF:OffsetTime*=+03:00

StarGeek

You can copy it directly
C:\>exiftool -time:all --system:all -G1 -a -s y:\!temp\Test4.jpg
[XMP-exif]      DateTimeDigitized              : 2023:04:13 10:42:25+03:00

C:\>exiftool -P -overwrite_original "-OffsetTime*<DateTimeDigitized" y:\!temp\Test4.jpg
    1 image files updated

C:\>exiftool -time:all --system:all -G1 -a -s y:\!temp\Test4.jpg
[ExifIFD]      OffsetTime                      : +03:00
[ExifIFD]      OffsetTimeOriginal              : +03:00
[ExifIFD]      OffsetTimeDigitized            : +03:00
[XMP-exif]      DateTimeDigitized              : 2023:04:13 10:42:25+03:00
* 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).

José Oliver-Didier