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 2007-04-27 20:36:46-07 by bozi
how filename to TAG?
Hi,
I tried to find out the best method to bring the filename or directory in the Tags.
I found in the manpage -TAG<=FMT ...
How is the right syntax?
exiftool '-iptc:objectname<=%f' je4r6479.jpg
brings the error
doesnt work (Tag 'iptc:objectname' is not writable)

exiftool -tagsfromfile @ '-filename>IPTC:objectname' je4r6479.jpg
did a fine job.
My Version is 6.87 , the tags are only examples
bozi
Direct Responses: 5010 | Write a response
Posted on 2007-04-28 01:12:44-07 by exiftool in response to 5005
Re: how filename to TAG?
Hi Bozi,

ExifTool is giving a misleading error in this case. I will fix this, thanks for pointing it out.

The error should be "Error opening file je4r6479".

The first command you used if for writing the contents of a file into the value of a tag, which isn't what you wanted.

Your second command copies the filename tag to the objectname tag, which is what you want. In this example though, the "-tagsfromfile @" can be omitted since this is assumed whenever tags are being copied unless another file is specified.

- Phil
Direct Responses: Write a response