The Canon CR2 format
Visit the DCRAW. site and download the latest version.
I used to keep the source (dcraw.c), the man page (dcraw.1), and the gimp plugin (rawphoto.c) here, but they change so often that nobody is well served by my doing so. Use the above link to obtain the latest source.
Apparently the NO_LCMS thing disables the -p option, and the NO_JPEG option drops support for the Kodak DC120, so I choose the second line for now and it works fine (but it does take a while to compile with 6500 line program with -O4 optimization). It turns out this is version 8.11 of dcraw, I find version 6.35 in /usr/bin on my Fedora Core 4 system.
Once compiled, place the executable someplace like /usr/local/bin and the man page into /usr/local/man/man1.
To use the gimp plugin, the thing to do is to build and install dcraw, then do:
gimptool --install rawphoto.c.
Be warned (or aware at least) that the stock gimp is an 8-bit tool, so as soon as you begin working with an image using the gimp you have thrown away much of the advantage of using a raw file.
dcraw -c img_0999.cr2 | ppmtojpeg >img_0999.jpg
This fellow has made a start at a
users manual for dcraw, and you have to take note of his
Camera Hacker website. He has even written a book
entitled Hacking Digital Cameras.
Here are some other links for further study:
UFraw was available from sourceforge via anonymous CVS and I grabbed a copy via:
Joseph Heled (see link above) has forked his own copy of UFRaw (which is itself a fork of DCraw) and written a
gimp plugin to go along with it, I believe he is calling it RougePhoto. It may be specific to the Nikon D70.
Little CMS is a color management system that can be tangled into this whole business.
Here is a
short note on LCMS.
cvs -z3 -d:pserver:[email protected]:/cvsroot/ufraw co ufraw
Feedback? Questions?
Drop me a line!