unable to convert raw images

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
jennytoy
Posts: 2
Joined: 2015-07-06T08:01:41-07:00
Authentication code: 1151

unable to convert raw images

Post 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.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: unable to convert raw images

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: unable to convert raw images

Post 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.
snibgo's IM pages: im.snibgo.com
jennytoy
Posts: 2
Joined: 2015-07-06T08:01:41-07:00
Authentication code: 1151

Re: unable to convert raw images

Post by jennytoy »

Yes you are correct that ImageMagick is calling ufraw-batch to do the conversion.
And yes ufraw-batch is installed and works.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: unable to convert raw images

Post 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?
snibgo's IM pages: im.snibgo.com
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: unable to convert raw images

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: unable to convert raw images

Post by snibgo »

Bonzo wrote:Does the Windows Imagemagick use dcraw rather than ufraw?
Correct.
snibgo's IM pages: im.snibgo.com
Post Reply