2 .\" Man page for dcraw (Raw Photo Decoder)
4 .\" Copyright (c) 2003 by David Coffin
6 .\" You may distribute without restriction.
9 .\" dcoffin a cybercom o net
10 .\" http://www.cybercom.net/~dcoffin
12 .TH dcraw 1 "March 6, 2004"
15 dcraw - convert raw digital photos to PPM format
18 [\fIOPTION\fR]... [\fIFILE\fR]...
21 converts a list of raw digital camera files to
23 format. Dozens of cameras are supported, and new ones are
24 added as they reach the market.
28 Identify files but don't decode them.
31 can decode the last file, 1 if it can't.
34 Write binary image data to standard output.
37 creates files with a ".ppm" extension.
40 Print verbose messages. Otherwise,
42 prints only warnings and errors.
45 Interpolate RGB as four colors. The default is to assume that
46 all green pixels are the same. If even-row green pixels are
47 more sensitive to ultraviolet light than odd-row green pixels,
48 this difference causes a mesh pattern in the output.
50 solves this problem with minimal loss of detail.
53 Show the raw data as a grayscale image with no interpolation.
54 Good for photographing black-and-white documents.
57 Use simple bilinear interpolation for quick results. The
58 default is to use a slow, high-quality adaptive algorithm.
61 Half-size the output image. Instead of interpolating, reduce
62 each 2x2 block of sensors to one pixel. Much faster than
66 Specify the gamma value for eight-bit output. Default is 0.6.
69 Specify the output brightness. Default is 1.0.
72 Automatic color balance. The default is to use a fixed
73 color balance based on a white card photographed in sunlight.
76 Use the color balance specified by the camera.
77 If this can't be found,
79 prints a warning and reverts to the default.
81 .B -r red_mul -l blue_mul
82 After all other color adjustments, multiply the red and blue
83 channels by these values. Default is 1.0.
86 Write eight bits per color value with gamma correction and
87 automatic brightness adjustment. Double the height
88 if necessary to correct the aspect ratio. This is the default.
91 Write sixteen bits per color value, with no gamma correction,
92 no brightness adjustment, and no changes to the aspect ratio.
97 written in Adobe PhotoShop format. File extension is ".psd".
99 ppm(5), ppm2tiff(1), pnmtotiff(1), pnmtopng(1), gphoto2(1).
103 option does not work with many cameras.
105 No attempt is made to save camera settings or thumbnail images.
107 Author stubbornly refuses to add more output formats.
111 to produce the same images as software provided by the camera
114 gives better results!
116 First raise the brightness if the highlights are too dark,
117 then lower the gamma if the lowlights are too dark.
122 until you get it right.
124 To balance the color, do
125 .RB \^" dcraw\ -q\ -g\ 1\ -b\ 0.5 \^"
126 and select a rectangle of something that you know is white.
127 Compute the average R, G, and B values for this area, then
128 set red_mul and blue_mul to G/R and G/B.
130 Written by David Coffin, dcoffin a cybercom o net