8
{ 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.

3
  • 2
    Are the ufraw utilities installed on the system? Commented Jan 4, 2019 at 13:29
  • yes i have installed it recently still can't find any solution. Commented Jan 8, 2019 at 14:10
  • It needs to be installed and ImageMagick recompiled so that it can find it. Does it show up in the list of Delegates as raw when you do convert -version?
    – fmw42
    Commented Aug 29, 2019 at 15:56

2 Answers 2

9

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";
7
  • how to convert it to jpg? Commented Sep 29, 2019 at 2:40
  • There is also pnmtojpeg command if you want them as jpg files. (there are also others if you want to) you can also use the convert command to change filetype. Commented Sep 30, 2019 at 13:28
  • 3
    Thanks this actually worked for me on OS Catalina with ImageMagic 7.0.10. For mac use brew install ufraw.
    – homiak
    Commented Sep 29, 2020 at 19:34
  • Ubuntu users: UFRAW is apparently no longer maintained en.wikipedia.org/wiki/UFRaw so it shouldn't be installed, and it's also not available on Ubuntu 20 and up unfortunately.
    – Raleigh L.
    Commented Oct 3, 2022 at 4:28
  • Added a note to the answer for the unmaintained tool. Commented Oct 12, 2022 at 15:13
1

Macos:

brew install ufraw

Solved it for me

1
  • ufraw is now disabled from brew... Commented Nov 12, 2023 at 15:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.