Thread

Posted on Sat Feb 2 09:49:06 2008 by bogdan
XMP copying DateTime tags using -all:all
Assume I have DNG file (Adobe converter used). DNG contains plenty of metadata, but I'm interested on XMP part. Among others, there is also XMP-exif:DateTimeOriginal and XMP-exif:DateTimeDigitized. Now, if I execute:

exiftool -tagsfromfile test.DNG -all:all result.MIE
-I get all XMP data (plus other metadata) inside MIE, except xmp:DateTimeOriginal and xmp:DateTimeDigitized!?

If I use:
exiftool -tagsfromfile test.DNG -xmp:all result.MIE
-then I get complete XMP data, including both DateTime tags.

I've made a test: I took some test.JPG file, deleted all metadata there and put there only:
exiftool -xmp:DateTimeOriginal="2008:01:31 08:00:00" test.JPG

If I now execute the same command:
exiftool -tagsfromfile test.JPG -all:all result.MIE
-then XMP-exif:DateTimeOriginal is written into resulting MIE file (as expected).
Any idea?

Greetings,
Bogdan
Direct Responses: 6993 | Write a response
Posted on Sat Feb 2 15:39:16 2008 by exiftool in response to 6990
Re: XMP copying DateTime tags using -all:all
I don't understand how this can happen. When I run this test it works fine for me:

> exiftool a.jpg -xmp:all -a -G1 [XMP-exif] Date/Time Digitized : 2004:06:04 14:02:21-05:00 [XMP-exif] Date/Time Original : 2004:06:04 14:02:21-05:00 [XMP-pdf] Author : me > exiftool -tagsfromfile a.jpg -xmp:all a.mie -v3 Setting new values from a.jpg Writing XMP-exif:DateTimeOriginal Writing XMP-exif:DateTimeDigitized Writing XMP-pdf:Author ======== a.mie Rewriting a.mie... FileType = MIE MIMEType = application/x-mie Editing tags in: MIE MIE-Meta XMP Creating tags in: MIE MIE-Meta XMP Writing MIE1-Main: Writing MIE1-Meta1: Rewriting XMP - XMP-pdf:Author = 'me' + XMP-pdf:Author = 'me' - XMP-exif:DateTimeDigitized = '2004-06-04T14:02:21-05:00' + XMP-exif:DateTimeDigitized = '2004-06-04T14:02:21-05:00' - XMP-exif:DateTimeOriginal = '2004-06-04T14:02:21-05:00' + XMP-exif:DateTimeOriginal = '2004-06-04T14:02:21-05:00' 1 image files updated > exiftool a.mie -a -G1 [ExifTool] ExifTool Version Number : 7.15 (pre-release) [File] File Name : a.mie [File] Directory : . [File] File Size : 3 kB [File] File Modification Date/Time : 2008:02:02 09:03:15 [File] File Type : MIE [File] MIME Type : application/x-mie [XMP-exif] Date/Time Digitized : 2004:06:04 14:02:21-05:00 [XMP-exif] Date/Time Original : 2004:06:04 14:02:21-05:00 [XMP-pdf] Author : me

If this doesn't work for you, please send me a sample image and your exact command line and I should be able to figure it out.

- Phil
Direct Responses: 6996 | Write a response
Posted on Sat Feb 2 16:33:16 2008 by bogdan in response to 6993
Re: XMP copying DateTime tags using -all:all
Hi Phil,
Maybe I've complicated by explaining my issue -trying to be specific :-)

I am interested on XMP section inside DNG. If I use exact this command:

exiftool -tagsfromfile test.DNG -all:all result.MIE
-then all XMP tags are saved into MIE file, except xmp:DateTimeOriginal and xmp:DateTimeDigitized. Of course, resulting MIE also contain plenty of other metadata, but I'm focusing on XMP in this case. How come above tags are missing inside MIE?

If I execute (for the same DNG file):

exiftool -tagsfromfile test.DNG -xmp:all result.MIE
-then both, xmp:DateTimeOriginal and xmp:DateTimeDigitized, are not missing inside resulting MIE file.

See, using "-xmp:all", copies all XMP data into MIE, but if I use "-all:all", two (DateTime) tags are missing (all other XMP tags are copied).
This doesn't happen if source file is JPG.
Btw. both, DNG and CR2 (which was source for DNG), aren't manipulated. I would send you a DNG, but don't have your mail address by hand...

Thank you for patience,
Bogdan
Direct Responses: 6997 | Write a response
Posted on Sat Feb 2 16:51:10 2008 by bogdan in response to 6996
Re: XMP copying DateTime tags using -all:all
Confusing... about "This doesn't happen if source file is JPG". It really doesn't happen, if DateTimeOriginal is manually (using exiftool) added into JPG.
But, if xmp section is copied from DNG into JPG, then JPG behaves the same as DNG:

exiftool -tagsfromfile test.jpg -xmp:all result.mie
-copies complete XMP section into MIE, but using:

exiftool -tagsfromfile test.jpg -all:all result.mie
-now xmp:DateTimeOriginal and xmp:DateTimeDigitized are missing inside MIE.

Bogdan
Direct Responses: 6999 | Write a response
Posted on Sun Feb 3 14:02:41 2008 by exiftool in response to 6997
Re: XMP copying DateTime tags using -all:all
OK, I understand now.

It may be that there is something specific about your XMP information that is causing this. If you could send me the JPEG (since it is hopefully smaller), I should be able to figure this out. my mail is phil at owl.phy.queensu.ca

- Phil
Direct Responses: 7001 | Write a response
Posted on Sun Feb 3 14:15:36 2008 by exiftool in response to 6999
Re: XMP copying DateTime tags using -all:all
Update:

I have been able to reproduce this problem, so you don't need to send me a sample image.

I'll let you know when I have figured out what is going wrong.

- Phil
Direct Responses: 7002 | Write a response
Posted on Sun Feb 3 14:59:53 2008 by exiftool in response to 7001
Re: XMP copying DateTime tags using -all:all
Wow. Nice catch, Bogdan! This was a bug in exiftool introduced in version 6.91. It only affects XMP date/time tags when copying information using -all:all, and will be fixed in version 7.15 when it is released. Until then, the work-around is to add -xmp:all to the command line when copying all tags with -all:all. ie)

exiftool -tagsfromfile src.jpg -all:all -xmp:all dst.mie

Thank you very much for pointing out this sneaky problem!!

- Phil
Direct Responses: 7005 | Write a response
Posted on Sun Feb 3 17:04:16 2008 by bogdan in response to 7002
Re: XMP copying DateTime tags using -all:all
Hi Phil,
Well, I'm glad you could reproduce what I was trying to explain with my limited english :-)
For now I'll wait for v7.15 (to avoid changing my GUI code twice).

Greetings,
Bogdan
Write a response