problem with exiftool in batch mode

Started by Archive, May 12, 2010, 08:54:15 AM

Previous topic - Next topic

Archive

[Originally posted by manni1 on 2008-02-05 16:49:59-08]

Hello,

after some manually experience with exiftool I try to transfer EXIF-data from RAW to JPG in batch mode.

The following batch file works properly:

exiftool -tagsfromfile ..%%d%%f.NEF -comment="mit RawShooter erzeugt" -ext JPG .

When I instead try to change the Tag "Software" like the following statement:

exiftool -tagsfromfile ..%%d%%f.NEF -software="RawShooter" -ext JPG .

the destination file shows the information from the RAW picture, not the new string. The same appeares without "". Same with -software+=Value.

How can I transfer from RAW to JPG and change the Tag "Software" ?

Yours Manfred

Archive

[Originally posted by exiftool on 2008-02-05 17:04:28-08]

This is a subtle quirk of batch processing that is explained in the
-TagsFromFile documentation:

Code:
3) When performing complex batch processing, it is important to note that
the order of operations is different for tags copied in batch mode.  In
general, tags are copied from batch-mode files after all other command-line
arguments have been applied.  (The exception is that a group delete is
always performed last if there are no subsequent tag assignments on the
command line.)  For example, the following two commands are not equivalent:

    # (not batch mode):  Sets xmp:title to 'NEW'
    exiftool -tagsfromfile a.jpg -xmp:title -xmp:title=NEW a.jpg

    # (batch mode):  Preserves original title if it exists
    exiftool -tagsfromfile @ -xmp:title -xmp:title=NEW a.jpg

This applies to you since you aren't using a constant filename for the
-tagsFromFile source file.

To avoid this problem, you must not copy any tags that you want to
write separately.  ie)

Code:
exiftool -tagsfromfile ..%%d%%f.NEF --software -software="RawShooter" -ext JPG .

- Phil

Archive

[Originally posted by manni1 on 2008-02-05 20:26:47-08]

Thank you - super, this works. I tried a lot of versions.

And a very fast help - thank you, Phil

Manfred

Archive

[Originally posted by manni1 on 2008-02-08 12:24:05-08]

Another question comes up when working with your nice tool, Phil:

Nikon NEF-files contain hardware-dependend informations like PhotometricInterpretation,
RowsperStrip, StripByteCount and so on.

Why are this data not transferred to the JPG-files?

Yours Manfred

Archive

[Originally posted by exiftool on 2008-02-08 13:44:12-08]

Hi Manfred,

There is a line between meta information and the image data itself,
and these tags have crossed this line.  They are a characteristic of
the image itself, and not part of the meta information.  Since the JPEG
image is stored in a different format, copying these tags would be
inappropriate, and could affect the way the image is rendered.

I hope this makes sense.

- Phil

Archive

[Originally posted by manni1 on 2008-02-09 16:50:09-08]

Thanks, Phil - I understand

Manfred