Page 1 of 1

unable to convert raw images

Posted: 2015-07-06T09:25:55-07:00
by jennytoy
I installed ImageMagick6.9.1 in my fedora 18 together with ufraw-0.22
(from source)

everything installed ok.

But when I run

convert -verbose /home/jenny/IMG_5955.CR2 /home/jenny/IMG_5955.png

I get

Code: Select all

"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=/tmp/magick-12526Vo30i1lVwHJm.png" "/tmp/magick-12526PuarTWMsIHtX"
"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=/tmp/magick-12526MrA2ryQdoFgx.png" "/tmp/magick-12526I6V2pqOfMG36"
convert: delegate failed `"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"' @ error/delegate.c/InvokeDelegate/1332.
convert: unable to open image `/tmp/magick-12526Vo30i1lVwHJm.ppm': No such file or directory @ error/blob.c/OpenBlob/2697.
convert: no images defined `/home/jenny/IMG_5955.jpg' @ error/convert.c/ConvertImageCommand/3212.

I am at a loss.

Re: unable to convert raw images

Posted: 2015-07-06T09:35:21-07:00
by fmw42
I am not a raw expert, but I believe you need to specify the dimensions of the raw image. See http://www.imagemagick.org/Usage/formats/#crw

Re: unable to convert raw images

Posted: 2015-07-06T10:01:34-07:00
by snibgo
I suppose IMG_5955.CR2 is a raw camera file, convertible to PNG or whatever by ufraw-batch. Its internal metadata gives width, height etc, so they don't need to be specified in the command.

"delegate failed", so is ufraw-batch installed? Try running it from the command line.

Re: unable to convert raw images

Posted: 2015-07-06T10:05:42-07:00
by jennytoy
Yes you are correct that ImageMagick is calling ufraw-batch to do the conversion.
And yes ufraw-batch is installed and works.

Re: unable to convert raw images

Posted: 2015-07-06T10:28:10-07:00
by snibgo
Then I suppose this command works?

Code: Select all

"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=/home/jenny/IMG_5955.png" "/home/jenny/IMG_5955.CR2"
If so, it may be a permissions problem, but I'm only guessing. Do you have read/write access to /tmp? Is it full?

Re: unable to convert raw images

Posted: 2015-07-06T10:32:21-07:00
by Bonzo
Your command works for me on Windows command line but it is calling dcraw. Does the Windows Imagemagick use dcraw rather than ufraw?

No need to add any dimensions etc. and this was with version 6.9.0

Re: unable to convert raw images

Posted: 2015-07-06T11:21:47-07:00
by snibgo
Bonzo wrote:Does the Windows Imagemagick use dcraw rather than ufraw?
Correct.