ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: elm1430 on September 02, 2010, 01:34:17 AM

Title: IPTC caption
Post by: elm1430 on September 02, 2010, 01:34:17 AM
Hello,

I want to copy filenames to IPTC captions.  I'm using the following:

    exiftool "-iptc:caption-abstract<filename" *.jpg

exiftool works fine but the above command copies the '.jpg' extensions too.
What command should I use to to not include extensions?

Thank you,
Ed Marvin
Title: Re: IPTC caption
Post by: Phil Harvey on September 02, 2010, 07:09:27 AM
Hi Ed,

If you install the sample config file (https://exiftool.org/config.html) from the full exiftool distribution, then use BaseName instead of FileName in your command, you should get what you want.

- Phil
Title: Re: IPTC caption
Post by: elm1430 on September 02, 2010, 01:36:34 PM
Thanks Phil,

I'm still a bit confused about which folders to use. I need to study the documentation more. No involved reply necessary at this time. But I have one small question. Is the 'dot' in -config ".ExifTool_config" significant? I assumed it is and used Windows 'rename' to insert it.

Ed
Title: Re: IPTC caption
Post by: elm1430 on September 02, 2010, 07:59:01 PM
Hello Phil,

Problem solved. The -config file worked.
Thanks for such a great tool.

Ed Marvin
Title: Re: IPTC caption
Post by: Phil Harvey on September 03, 2010, 07:10:09 AM
Hi Marvin,

The file name is only significant (with leading dot) if the config file is being loaded automatically.  Loading it manually with the -config option you can use any file name.

- Phil