DCRAW and Canon CR2 files

nightsbird

Joined: 2008-10-07
Posts: 2
Posted: Tue, 2008-10-07 02:47

I have installed the latest G2 (2.3rc2)
I am running a vps server with CentOS Enterprise 4.7
I compiled dcraw latest version http://www.cybercom.net/~dcoffin/dcraw/archive/dcraw-8.88.tar.gz
with this command gcc -o dcraw -O4 dcraw.c -lm -DNO_JPEG -DNO_LCMS
could not get the files to process correctly..

However after tweaking DcrawToolkit.class in the dcraw classes directory of modules

around line 126
if (version_compare($version, '7.73', '>=')) {
//$cmd = array($dcraw, '-c', '-a', '-q', '0', $sourceFilename, '>', $tmpFilename);
$cmd = array($dcraw, '-c', $sourceFilename, '>', $tmpFilename);
} else {
//$cmd = array($dcraw, '-c', '-a', '-q', $sourceFilename, '>', $tmpFilename);
$cmd = array($dcraw, '-c', $sourceFilename, '>', $tmpFilename);
}
original is commented out and changing to $gallery->guaranteeTimeLimit(180);

it now produces the image and thumbnail
attached is the modified file, dcraw source, and compiled dcraw

if this is in the wrong directory feel free to move it i couldnt find a bug fix submit form

Jeff

AttachmentSize
dcraw.zip350.24 KB
Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 11717
Posted: Tue, 2008-10-07 04:28
Login or register to post comments
nightsbird

Joined: 2008-10-07
Posts: 2
Posted: Tue, 2008-10-07 11:23

well doesnt that just make one feel dumb ;) thanks Dave

Login or register to post comments