Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagic gives ' delegate failed `'ufraw-batch' '

{ Error: Command failed: identify: delegate failed `'ufraw-batch' --silent --create-id=also --out-type=png --out-depth=16 '--output=%u.png' '%i'' @ error/delegate.c/InvokeDelegate/1919.
identify: unable to open image `/tmp/magick-53080Z_JGYvtuPOl8.ppm': No such file or directory @ error/blob.c/OpenBlob/2841.

I got an issue while working with ImageMagick in my node application I did the search but can't get the proper solution for my problem.

like image 257
Mohammad Zeeshan Avatar asked Jan 04 '19 09:01

Mohammad Zeeshan


2 Answers

Edit: ufraw is no longer maintained, so use at your own risk and see dcraw alternative lower down.

You need to install 'ufraw-batch'

sudo apt-get install ufraw-batch

If this does not work, as it did for me. I got a "Segmentation fault (core dumped)" This seems to be common problem with ufraw: https://sourceforge.net/p/ufraw/bugs/ It does not seem to get update much anymore, at least not in the main repos.

Converting RAW image into other types of image you can use DCRaw (it is also used by UFRaw). Here is an example to convert a .cr2 image to a .png:

dcraw -c -w "./IMG_1.CR2" | pnmtopng > "./IMG_1.png";
like image 75
Ralph Bisschops Avatar answered Nov 12 '22 17:11

Ralph Bisschops


Macos:

brew install ufraw

Solved it for me

like image 1
Lamellama Avatar answered Nov 12 '22 19:11

Lamellama