How to extract EXIF data, write it into piped input, then save it out?

Started by cainn, February 27, 2015, 04:27:19 AM

Previous topic - Next topic

cainn

So far I'm here (simplified version):

dcraw -c rawfile.rw2 | convert - jpeg:- | insert-awesome-exiftool-command-here

What I'm trying to do: develop a RAW file (.ppm or .tiff are the only dcraw output options), pipe it to imagemagick for conversion to JPEG, and then because imagemagick seems to have problems preserving EXIF data properly in this particular scenario, pull the EXIF data from the original RAW file, embed it into the piped JPEG data, and then save it out.

I wont embarrass myself by providing examples of all the syntactical absurdities that I have concocted so far.  I'm just hoping that someone can enlighten me.

Thanks :)

cainn

Nevermind.  I think I was trying to do too many different things at once and so piping wasn't the issue at all.  Reducing the command to its simplest form works fine:

dcraw -c rawfile.rw2 | convert - jpeg:- | exiftool -tagsfromfile rawfile.rw2 - > output.jpg

so I will just work from there one step at a time.

Sorry for the needless intrusion!