Help installing dcraw and exif tools on Mac

Started by TonyB65, April 11, 2014, 12:45:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TonyB65

Hi,

I was hoping someone could help me here as I'm keen to use the dual ISO functionality on ML on my 5D2. I have a macbook running Snow Leopard and just can't work out how to install dcraw and exif tools. I have installed X-code and macports but have no idea what to do after that. I'm not terminal savvy ( though I have used one very occasionally a while ago ) and need a bit of an idiots guide on how to complete the install. I have downloaded cr2hdr, dcraw and exif tool but need an idiots guide as to how I can get them all to work so I can process my CR2 files. I've tried googling and looking at various pages but have had no joy finding a decent guide on how to do this. I can't be the only photographer who's not a terminal jedi, any help would be much appreciated.

Tony

dmilligan

Go to the terminal, type
sudo port install name_of_thing_to_install
Where name_of_thing_to_install is for example dcraw or exiftool or anything else you might want to install

Now to run cr2hdr you need to cd to the directory cr2hdr is located
cd path/to/cr2hdr
Then run it:
./cr2hdr path/to/some/image.cr2

You can use the wildcard * to process multiple files:
./cr2hdr path/to/some/images/*.cr2

Hint you can drag and drop files and folders onto a terminal window to get the path

Also checkout the command line options for cr2hdr (just type ./cr2hdr without giving it a file and it should print out a list of options)

TonyB65

Thanks, dcraw appeared to install but I ran the Exif tool installer (not command line) and then ran the CR2hdr app and got this error message

Input file : IMG_3385.CR2
sh: dcraw: command not found sh: dcraw: command not found Error: dcraw output is not a valid PGM file Logfile    : IMG_3385.txt

The logfile generated states the following

Input file     : IMG_3385.CR2
Canon EOS 5D Mark II detected
Full size      : 0 x 0
Active area    : 0 x 0

Any ideas?

dmilligan

what happens if you just type dcraw in the terminal?

TonyB65

Quote from: dmilligan on April 12, 2014, 11:22:42 PM
what happens if you just type dcraw in the terminal?

It starts up in the terminal with the following


Raw photo decoder "dcraw" v9.20
by Dave Coffin, dcoffin a cybercom o net

Usage:  dcraw [OPTION]... [FILE]...

-v        Print verbose messages
-c        Write image data to standard output
-e        Extract embedded thumbnail image
-i        Identify files without decoding them
-i -v     Identify files and show metadata
-z        Change file dates to camera timestamp
-w        Use camera white balance, if possible
-a        Average the whole image for white balance
-A <x y w h> Average a grey box for white balance
-r <r g b g> Set custom white balance
+M/-M     Use/don't use an embedded color matrix
-C <r b>  Correct chromatic aberration
-P <file> Fix the dead pixels listed in this file
-K <file> Subtract dark frame (16-bit raw PGM)
-k <num>  Set the darkness level
-S <num>  Set the saturation level
-n <num>  Set threshold for wavelet denoising
-H [0-9]  Highlight mode (0=clip, 1=unclip, 2=blend, 3+=rebuild)
-t [0-7]  Flip image (0=none, 3=180, 5=90CCW, 6=90CW)
-o [0-5]  Output colorspace (raw,sRGB,Adobe,Wide,ProPhoto,XYZ)
-o <file> Apply output ICC profile from file
-p <file> Apply camera ICC profile from file or "embed"
-d        Document mode (no color, no interpolation)
-D        Document mode without scaling (totally raw)
-j        Don't stretch or rotate raw pixels
-W        Don't automatically brighten the image
-b <num>  Adjust brightness (default = 1.0)
-g <p ts> Set custom gamma curve (default = 2.222 4.5)
-q [0-3]  Set the interpolation quality
-h        Half-size color image (twice as fast as "-q 0")
-f        Interpolate RGGB as four colors
-m <num>  Apply a 3x3 median filter to R-G and B-G
-s [0..N-1] Select one raw image or "all" from each file
-6        Write 16-bit instead of 8-bit
-4        Linear 16-bit, same as "-6 -W -g 1 1"
-T        Write TIFF instead of PPM

tonymacbook:~ tonyblatcher$ /Users/tonyblatcher/Desktop/IMG_3385.CR2

I'm not sure how I'm meant to use exif tool with it if that makes any sense? I'm guessing I need exif tool to do something prior to dcraw?

dmilligan

You don't have to do anything with exiftool or dcraw, cr2hdr uses them and expects them to be on the path. If they are not installed correctly it won't be able to find them. You'll know if they are 'on the path' and installed correctly if you can type e.g. dcraw or exiftool into the terminal and get some sort of response from the program (usually command line usage options and/or version information)