johann@nenni.net
johann@nenni.net's picture

Joined: 2003-09-01
Posts: 43
Posted: Sun, 2005-05-29 09:59

Dcraw is not working for me ether... I am using Linux, SuSe 9.2

And I did install dcraw 5.8 in /usr/bin (default in this RPM I did use)

I get this error: The path you entered isn't a valid Dcraw binary. Use the 'test' button to check where the error is.

and when runing test, I get this message:
Dcraw binary test results
Binary Name Pass/Fail
dcraw
Failed
Error messages:

Binary output:

Raw Photo Decoder "dcraw" v5.88

by Dave Coffin, dcoffin a cybercom o net

Usage: /usr/bin/dcraw [options] file1 file2 ...

Valid options:

-i Identify files but don't decode them

-c Write to standard output

-v Print verbose messages while decoding

-f Interpolate RGBG as four colors

-d Document Mode (no color, no interpolation)

-q Quick, low-quality color interpolation

-h Half-size color image (3x faster than -q)

-g Set gamma (0.6 by default, only for 24-bpp output)

-b Set brightness (1.0 by default)

-a Use automatic white balance

-w Use camera white balance, if possible

-r Set red multiplier (daylight = 1.0)

-l Set blue multiplier (daylight = 1.0)

-2 Write 24-bpp PPM (default)

-3 Write 48-bpp PSD (Adobe Photoshop)

-4 Write 48-bpp PPM

Debug message say this:
is_file(/usr/bin/dcraw)
Executing: ( "/usr/bin/dcraw" )
2>/srv/gallery2.nenni.net/g2data/tmp/g2dbgKOg3HE
file_exists(/srv/gallery2.nenni.net/g2data/tmp/g2dbgKOg3HE)
filesize(/srv/gallery2.nenni.net/g2data/tmp/g2dbgKOg3HE)
fopen(/srv/gallery2.nenni.net/g2data/tmp/g2dbgKOg3HE, r, 0)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fgets(Resource id #120, 4096)
feof(Resource id #120)
fclose(Resource id #120)
unlink(/srv/gallery2.nenni.net/g2data/tmp/g2dbgKOg3HE)
Regular Output:
Error Output:
Raw Photo Decoder "dcraw" v5.88
by Dave Coffin, dcoffin a cybercom o net
Usage: /usr/bin/dcraw [options] file1 file2 ...
Valid options:
-i Identify files but don't decode them
-c Write to standard output
-v Print verbose messages while decoding
-f Interpolate RGBG as four colors
-d Document Mode (no color, no interpolation)
-q Quick, low-quality color interpolation
-h Half-size color image (3x faster than -q)
-g Set gamma (0.6 by default, only for 24-bpp output)
-b Set brightness (1.0 by default)
-a Use automatic white balance
-w Use camera white balance, if possible
-r Set red multiplier (daylight = 1.0)
-l Set blue multiplier (daylight = 1.0)
-2 Write 24-bpp PPM (default)
-3 Write 48-bpp PSD (Adobe Photoshop)
-4 Write 48-bpp PPM
Status: 1 (expected 0)

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2005-06-01 08:15

We've only tested dcraw with versions 6 and 7. You can help us figure out if v5 is ok. Edit modules/dcraw/classes/DcrawToolkitHelper.class and on line 97 change that block to:

        if (strstr($verCheck, 'Raw Photo Decoder "dcraw" v5') ||
                strstr($verCheck, 'Raw Photo Decoder "dcraw" v6') ||
                strstr($verCheck, 'Raw Photo Decoder "dcraw" v7')) {

Then activate the module and try uploading some RAW images and see if they work. If they do, let us know and we'll enable v5 also.

 
africanw

Joined: 2005-01-05
Posts: 16
Posted: Wed, 2005-06-08 14:17

Yep that fixed my problem

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-06-08 14:41

bharat, FYI: africanw is also using v5.88, see:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=31353

 
kefka810

Joined: 2005-07-07
Posts: 1
Posted: Thu, 2005-07-07 03:30