I'm very new to Imagick, even in Imagemagick. I simply try to convert CR2 or NEF files to jpg. I'm on it for 2 days without any solution.
I used this code :
Code: Select all
$im = new Imagick( 'source.CR2' );
$im->setImageFormat( 'jpg' );
$im->writeImage( 'result.jpg' );
$im->clear();
$im->destroy();
Note : if I try this code with a png or an hdr file everything is fine.
I asked the question on stackoverflow and people told me to install ufraw or dcraw. I installed both of them and the problem is still here.
I tested :
dcraw -i canonRaw_test.CR2
and it returns :
canonRaw_test.CR2 is a Canon EOS 60D image.
So dcraw is well installed.
I try the same code and the same cure on a Mac with MAMP and on a CentoS 6 server, with the same result.
Do I have to do something else after the ufraw or dcraw installation ?
Thanks