Serene Life

by garik

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

I have several hundred jpeg-scans of negatives. For some of these, I stored a textual description of the picture in the Caption-field of the IPTC metadata. (Whether it was a clever idea to store it there or elsewhere is a different question). I need a way to programmatically get out the text from all scans.

I.e. what I need is a tool which dumps the IPTC of all negatives programmatically. I can access the IPTC info in Irfanview by clicking buttons, but this is not practicable for more than a handful of scans. It needs to be programmatically in batch, ideally on the command line / bash shell, ideally with ASCII ouput.

Is this possible, and how?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

There are a number of free and open source tools that will do this, for Linux, Mac, or Windows. If you just need something very simple, jhead should do. Put it in a loop and output the result to one or more text files.

If you need more sophisticated options, you can step up to one of Exiv2 or ExifTool. These can read and write all sorts of metadata, including IPTC captions. Both programs are good. Exiv2 might be a little faster and is easier to embed in C programs, but that doesn't really affect you. ExifTool is probably more full-featured, but I don't think it'll matter for your basically-simple use case. Take a look at the docs and pick whichever seems easier to you.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.