ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:09 AM

Title: List of image names as argument for batch
Post by: Archive on May 12, 2010, 08:54:09 AM
[Originally posted by bogdan on 2007-10-06 09:20:23-07]

Hi,

Probably very basic situation/question... here's example:

I have 100 images in some directory, which have nothing common in filenames (they can even be of different format: jpg,raw,..).

Now, I have made list of some image files in that directory, which I wish to alter. For example:

exiftool -exif:artist=NN -xmp:city=london image1.jpg

exiftool -exif:artist=NN -xmp:city=london photo2.cr2

exiftool -exif:artist=NN -xmp:city=london final3.tif

....

-so, the same values for different named images.

I have a list of "selected" images... is it possible to put that list as argument, so all desired images would be altered in batch? I mean, something like:

exiftool -exif:artist=NN -xmp:city=london (image1.jpg photo2.cr2 final3.tif...)

Thanks,

Bogdan
Title: Re: List of image names as argument for batch
Post by: Archive on May 12, 2010, 08:54:09 AM
[Originally posted by exiftool on 2007-10-06 10:00:36-07]

Hi Bogdan,

Yes, this is one of the basic features of the command line.  You
can put as many file and/or directory names as you want on the
command line.  ExifTool is designed specifically for this purpose,
and optimized for speed in batch operations like this. ie)

Code:
exiftool -exif:artist=NN -xmp:city=london image1.jpg photo2.cr2 final3.tif...

This is what the elipses ("...") in the documentation indicate:

Code:
exiftool [OPTIONS] -TAG[+-<]=[VALUE]... FILE...

But if you missed this feature, I'm wondering now how many other people
don't realize this.  I'll look into making it more obvious in the documentation,
perhaps by doing this in more of the examples.

- Phil
Title: Re: List of image names as argument for batch
Post by: Archive on May 12, 2010, 08:54:09 AM
[Originally posted by bogdan on 2007-10-06 10:59:54-07]

Thanks for fast answering,

As you say, it's so obvious... so obvious, I didn't bother trying-out at all :-)

Yes, ExifTool has so many options. When I look after some "feature" of it, then I mostly look in examples and combine -well, missed that one.

Wish you the best,

Bogdan