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 2008-04-23 10:54:19-07 by exiftool in response to 7725
Re: write filename without extension to XMP:Description
Hi Heiko,

You can only use %f, %d and %e where a filename would be expected, so they can't be used to set the description. Instead, you must use a command like this:

exiftool "-xmp:Description<filename" *.*

but this command will also write the file extension. If you don't want the extension, you must create a user-defined tag to strip it off. Luckily, this is one of the example tags defined in the sample config file. So after installing the config file, you have a new "basename" tag which can be used to do what you want:

exiftool "-xmp:Description<basename" *.*

Also, I would recommend using "." (the current directory) instead of "*.*" (all files in the current directory), because then exiftool won't try to process files with unknown extensions (and subdirectories containing a "." in the name).

- Phil
Direct Responses: 7728 | Write a response