Monday, June 04, 2007

Copying EXIF tags

Somewhere along my image processing worklow (RAW -> ufraw -> tiff -> GIMP -> jpg -> flickr) I lost EXIF data. Probably it'd been stripped during conversion to tiff using ufraw. Hmm, how to automagically copy EXIF meta-data from CR2 RAW files to post-processed jpgs? Exiftool to rescue!

/home/banshee# wajig install libimage-exiftool-perl
/home/banshee# cd $ImagesDir
$ImagesDir# exiftool -tagsfromfile %d%f.CR2 -r -ext jpg .

From exiftool manpage: exiftool -tagsfromfile %d%f.CRW -r -ext JPG dir
*Recursively* rewrite all "JPG" images in "dir" with information copied from the corresponding "CRW" images in the same directories.