ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: herb on April 11, 2013, 09:37:19 AM

Title: Question to exporting metadata into sidecar files
Post by: herb on April 11, 2013, 09:37:19 AM
Hallo Phil,

I am working with the Exiftool Windows executable version 9.25 on a XP system.

My JPG-file t1.jpg contains exif, iptc and also xmp metadata.
With the following commands I tried to export metadata into a MIE file and also into a XMP sidecar file.


The command
exiftool -tagsfromfile t1.jpg -IFD0 -EXIFIFD t1.mie
responds: No writable tags set from t1.jpg

But the command
exiftool -tagsfromfile t1.jpg -EXIF t1.mie
creates the MIE file and the file contains tags in IFD0 and EXIFIFD group.

Why does command 1 not work?

Using the above commands, but specifying an XMP output file t1.xmp do also not work.
Both respond: Nothing to write


For an JPG file without XMP metadata the command
exiftool -tagsfromfile t2.jpg -All t2.xmp
creates the XMP file.


What I am doing wrong?
What do I misunderstand, because I thought all commands should work.

Thanks for your help in advance.
Best regards
Herb
Title: Re: Question to exporting metadata into sidecar files
Post by: Phil Harvey on April 11, 2013, 10:13:35 AM
Hi Herb,

IFD0 and EXIFIFD are not valid ExifTool tag names.  EXIF is an Extra tag (https://exiftool.org/TagNames/Extra.html) that is used to access the EXIF data block.

To extract and preserve the EXIF and XMP from a JPEG image into a MIE file, you should use this command:

exiftool -tagsfromfile t1.jpg -xmp -exif t1.mie

- Phil
Title: Re: Question to exporting metadata into sidecar files
Post by: herb on April 12, 2013, 05:25:18 AM
Hello Phil,

thanks for your quick reply and your hint to "Extra tags", which really helped me to understand my problem more and more.

Because the following commands
exiftool -tagsfromfile  src.jpg  -IFD0:all -EXIFIFD:all src.mie
exiftool -tagsfromfile  src.jpg  -all:all               dst.jpg
exiftool -tagsfromfile  src.jpg  -all                   dst.jpg

work properly I thought that also
exiftool -tagsfromfile  src.jpg  -IFD0 -EXIFIFD         src.mie
will work.

I interpreted the following sentence in exiftool help
Quoteexiftool -tagsfromfile src.jpg -all:all dst.jpg
         Copy the values of all writable tags from "src.jpg" to "dst.jpg",
         preserving the original tag groups
that the command
exiftool -tagsfromfile src.jpg -all dst.jpg
will copy the values of all writable tags from "src.jpg" to "dst.jpg",
but tags are written into the predefined taggroup (which is true) is working for all groupnames - and not only for -all.


When I use -tagsfromfile in order to copy tags from a source file into a destination file, I can specify the following
   -all
   -all:all
   -group:all with group a family 1 groupname
   -some specific extra tags like: -exif, -makernotes, -xmp and -iptc (without :all)
       whereas -iptc cannot be used in case creating an xmp sidecarfile.

Is this summary correct?

Thanks for your help and best regards
Herb
Title: Re: Question to exporting metadata into sidecar files
Post by: Phil Harvey on April 12, 2013, 06:35:48 AM
Quote from: herb on April 12, 2013, 05:25:18 AM
When I use -tagsfromfile in order to copy tags from a source file into a destination file, I can specify the following
   -all
   -all:all
   -group:all with group a family 1 groupname
   -some specific extra tags like: -exif, -makernotes, -xmp and -iptc (without :all)
       whereas -iptc cannot be used in case creating an xmp sidecarfile.

Is this summary correct?

You're still missing a some variations.  You can specify any writable tag name (not just the Extra tags, but other writable tags too), with or without a group name.  And you can specify as many of these as you want together in the same command.  (Plus, there is the redirection feature.)

- Phil
Title: Re: Question to exporting metadata into sidecar files
Post by: herb on April 12, 2013, 08:55:41 AM
Hello Phil,

thanks for your comments.
Yes you are right, but I was so concentarted in 'groupwise' copy of tags that I forgot to mention single writable tags.

Thanks again and best regards
Herb