Posted on 2008-12-02 16:15:32-08 by exiftool in response to 9481
Re: Melting the Caption of two images in a new one...
Interesting. The problem is that you want to copy the values from two separate files into a single tag. Tricky.

You have come across a limitation of the exiftool application. Of course, this is easy to do via the API, but not via the application.

If you are in Unix, you could do it with a command line like this:

exiftool a.jpg '-caption-abstract<$caption-abstract | '`exiftool b.jpg -caption-abstract -b`

But I don't know a way to do this in Windows.

You could also do it by going through a temporary file. This should work in any O/S:

exiftool a.jpg -caption-abstract -b > tmp.txt echo " | " >> tmp.txt exiftool b.jpg -caption-abstract -b >> tmp.txt exiftool a.jpg "-caption-abstract<=tmp.txt"

A bit messy too, but at least it is cross-platform. Of course, you could automate it somewhat by using a script or batch file.

Unfortunately, both of these techniques only process one file at a time, so batch processing must be scripted too.

Sorry I don't have a perfect solution, but I hope this helps.

- Phil
Direct Responses: 9483 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.