News:

2023-03-15 Major improvements to the new Geolocation feature

Main Menu

Wildcards or batch processing - how to?

Started by AnneA, April 06, 2010, 06:56:22 AM

Previous topic - Next topic

AnneA

First: Many thanks for all the effort you put into this wonderfully useful and flexible tool!


I need to copy tags between files based on the identity of their file name.

For example this works fine:

exiftool -TagsFromFile from/filename.JPG  -IPTC:Caption-Abstract to/filename.JPG

Basically I want to batch batch process the last command, doing something like this:

exiftool -TagsFromFile from/*.JPG  -IPTC:Caption-Abstract to/*.JPG

Unfortunately this doesn't work. How can I achieve the intended behaviour?

Anne

Phil Harvey

Hi Anne,

You're welcome. :)

Try this:

exiftool -tagsfromfile from/%f.%e -iptc:caption-abstract -ext jpg to

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

AnneA

exiftool -tagsfromfile from/%f.%e -iptc:caption-abstract -ext jpg to

Wonderful – that works smoothly!

Thank you VERY much for your swift support!

(I just donated 10 bucks)

Phil Harvey

Hi Anne,

Thanks for the donation, I didn't realize that was you.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).