Automatic ICC Profile Handling Upon Raw Jpeg Extraction

Started by areohbee, September 29, 2010, 10:40:58 PM

Previous topic - Next topic

areohbee

My apology in advance if this has already been discussed or if this capability already exists.

But the default when extracting a jpeg via -jpgFromRaw is to have no icc-profile, and as such all extractions will not be displayed properly, unless the icc-profile of the raw jpeg is sRGB.

I've remedied this by using a sequence of steps:

1.  extract the raw jpg
2.  extract the icc-profile
3.  Assigns the icc-profile to the extracted jpeg
4.  Deletes the extracted icc-profile.

My suggestion is to have all that be automatic since 99% of the time its what the user will want - the extracted jpeg without a proper icc-profile, just ain't much fun...

(I understand that it keeps filesize down to omit the profile if its sRGB anyway, but there should at least be a simple option to include it if not sRGB)

Thanks,
Rob

Phil Harvey

Hi Rob,

Exiftool just extracts the embedded image without modifying it in any way.  It will always be up to the user to add the icc profile if he wants.  This can be done with a single command line:

exiftool -jpgfromraw -b FILE | exiftool -tagsfromfile FILE -iccprofile - > extracted.jpg

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

areohbee

Thanks Phil - only took me a year to get back (I don't think I was notified - is it possible to make it automatic?).

Phil Harvey

Quote from: areohbee on September 27, 2011, 09:51:04 PM
Thanks Phil - only took me a year to get back (I don't think I was notified - is it possible to make it automatic?).

Yes, with the "Notify" button beside the "Reply" button on this page.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).