I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2006-08-07 16:27:05-07 by themonk
What Is The Most Efficent Way To Run ExifTool
Hi Phil

Just some feedback on how ExifTool works...

What is the most "efficent" way of invoking ExifTool to do the following

1. Remove all metdata from IPTC block and XMP block (-IPTC:All= -XMP:All=)
2. Set an IPTC value (-IPTC:By-line='Some Text')
3. Populate the XMP block with the IPTC values I have just set (-IPTC:By-line)

At the moment I am having to invoke exiftool several times or create an extra long command
to set both blocks to specific values... I like using "tagsFromFile" but this relies on the file
already existing.... (I presume it also makes life easier when modifying dates to
use "tagsFromFile")

Whilst I appreciate you can string certain groups of commands together it is not ideal and does not
always work....

For instance... To do 1+2 in a single operation does not seem possible....

ie... exiftool -IPTC:All= -IPTC:By-line="some text" testile.jpg

To do 1+2+3 in a single operation does not appear to work ...

In some cases I am having to write a file 3 times when I belive it would better if the file could be written once...

Your thoughts would be appreciated .... Thanks

Maybe using pipes is the answer, to at least save on the un-neccesary disk IO...?
Mark

Direct Responses: 2814 | Write a response