Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

ProjectDcraw

Doug-Pardee edited this page · 12 revisions

dcraw

The dcraw module in LightZone is modified from the standard versions provided by Dave Coffin. The known differences are:

  • A new parameter -F <filename> is provided for specifying the output filename.
  • The -i (identify) option lies about the number of Raw images in a Fuji EXR Raw file, as of dcraw 9.12. It always reports that there is one Raw image to prevent confusion with Fuji SuperCCD. The true number of Raw images is reported on a new line reading True Number of raw images.
  • The -i (identify) option displays the camera's RGB matrix.
  • The output color space is changed to have the same gamut and white point as ProPhoto but without any gamma.

The version shipped with LightZone 3.9 and 3.9.2 is dcraw 8.99. A number of new camera models have been added to dcraw that LightZone 3.9 is unable to support. Updating dcraw, and keeping it updated, is a priority for the LightZombie Project.

Windows: rename the dcraw.exe file in your LightZone installation directory and replace it with this version: dcraw.exe 9.12 for Windows
Mac: rename the dcraw file in your LightZone installation directory and replace it with this version: dcraw 9.12 for Mac -- you'll need to mark it executable with chmod +x
Linux: rename the dcraw file in your LightZone installation directory and replace it with this version: dcraw 9.12 for Linux -- you'll need to mark it executable with chmod +x

The Windows version is compiled using MinGW and the following command line:
gcc -o dcraw -O4 dcraw.c -lm -g -DNODEPS -DLIGHTZONE -lws2_32

The Mac version was compiled using the following command lines (some of the file names look to have been modified):
gcc -m32 -o dcraw32 -O4 dcraw912-2.c -lm -g -DNODEPS -DLIGHTZONE
lipo -create dcraw32 dcraw9.12 -output dcraw-u

The Linux version is compiled using gcc and the following command line:
gcc -o dcraw -O4 dcraw.c -lm -g -DNODEPS -DLIGHTZONE

There is no mailing list, RSS feed, or other announcement to advise when a new version of dcraw has been released. One way around this is to sign up with changedetection.com to email you when the dcraw page changes. Dave Coffin oftentimes updates dcraw 10-14 days after Adobe releases a new version of Adobe DNG Converter — dcraw uses color matrices from the Adobe DNG converter for most cameras.

LightZone parameters when calling dcraw

All have the LightZone-specific -F option for specifying the output filename and the -v option for verbose output.

LZ Browser: thumbnails

dcraw -F <outfile> -v -e <rawfile> // extracts the thumbnail from the file

LZ Browser: preview image

dcraw -F <outfile> -v -t 0 -o 1 -w -h <rawfile> // no rotation/flip, sRGB output, camera WB, half-size

LZ Editor: sensor information for demosaicing

dcraw -v -i -t 0 <rawfile> // displays Raw info, no rotation/flip
dcraw -v -i -s 1 -t 0 <rawfile> // (Fuji) as above for secondary Raw image (SuperCCD sensors)

LZ Editor: raw data extraction - to be demosaiced by LightZone (normal case)

dcraw -F <outfile> -v -j -H 1 -t 0 -d -4 <rawfile> // 1:1 pixels, unclipped highlights, no rotation/flip, Raw data output, 16-bit linear
dcraw -F <outfile> -v -j -H 1 -t 0 -s 1 -d -4 <rawfile> // (Fuji) as above for secondary Raw image (SuperCCD sensors)

LZ Editor: raw data extraction - demosaiced by dcraw

dcraw -F <outfile> -v -f -H 1 -t 0 -o 0 -4 <rawfile> // for 4-color sensors: 4-color, unclipped highlights, no rotation/flip, RGB output in Raw color space, 16-bit linear

dcraw -F <outfile> -v -H 1 -t 0 -o 0 -4 <rawfile> // for Sigma and other oddballs: unclipped highlights, no rotation/flip, RGB output in Raw color space, 16-bit linear

Something went wrong with that request. Please try again.