dcraw(1) dcraw(1) NAME dcraw - convert raw digital photos to PPM format SYNOPSIS dcraw [OPTION]... [FILE]... DESCRIPTION dcraw converts a list of raw digital camera files to ppm(5) format. Dozens of cameras are supported, and new ones are added as they reach the market. OPTIONS -i Identify files but don't decode them. Exit status is 0 if dcraw can decode the last file, 1 if it can't. -c Write binary image data to standard output. Otherwise, dcraw creates files with a ".ppm" extension. -v Print verbose messages. Otherwise, dcraw prints only warnings and errors. -f Interpolate RGB as four colors. The default is to assume that all green pixels are the same. If even-row green pixels are more sensitive to ultraviolet light than odd-row green pixels, this difference causes a mesh pattern in the output. -f solves this problem with minimal loss of detail. -d Show the raw data as a grayscale image with no interpolation. Good for photographing black-and-white documents. -q Use simple bilinear interpolation for quick results. The default is to use a slow, high-quality adaptive algorithm. -h Half-size the output image. Instead of interpolating, reduce each 2x2 block of sensors to one pixel. Much faster than -q. -g gamma Specify the gamma value for eight-bit output. Default is 0.6. -b brightness Specify the output brightness. Default is 1.0. -a Automatic color balance. The default is to use a fixed color balance based on a white card photographed in sunlight. -w Use the color balance specified by the camera. If this can't be found, dcraw prints a warning and reverts to the default. -r red_mul -l blue_mul After all other color adjustments, multiply the red and blue channels by these values. Default is 1.0. -t [0-7] Flip the output image. The most common flips are 5 (90 degrees CCW) and 6 (90 degrees clockwise). By default, dcraw tries to use the flip specified by the camera. "-t 0" forces dcraw not to flip the image. -2 Write eight bits per color value with gamma correction and auto- matic brightness adjustment. Double the height if necessary to correct the aspect ratio. This is the default. -4 Write sixteen bits per color value, with no gamma correction, no brightness adjustment, and no changes to the aspect ratio. -3 Same image as -4, written in Adobe PhotoShop format. File extension is ".psd". SEE ALSO ppm(5), ppm2tiff(1), pnmtotiff(1), pnmtopng(1), gphoto2(1). BUGS The -w option does not work with many cameras. No attempt is made to save camera settings or thumbnail images. Author stubbornly refuses to add more output formats. Don't expect dcraw to produce the same images as software provided by the camera vendor. Sometimes dcraw gives better results! TIPS First raise the brightness if the highlights are too dark, then lower the gamma if the lowlights are too dark. Use -q or -h until you get it right. To balance the color, do "dcraw -q -g 1 -b 0.5" and select a rectangle of something that you know is white. Compute the average R, G, and B values for this area, then set red_mul and blue_mul to G/R and G/B. AUTHOR Written by David Coffin, dcoffin a cybercom o net September 5, 2004 dcraw(1)