Convert NEF D80 issue

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
bmayer
Posts: 3
Joined: 2015-07-06T11:35:12-07:00
Authentication code: 1151

Convert NEF D80 issue

Post by bmayer »

I am getting an error when I try to convert NEF to jpg. Camera was a Nikon D80.

Command:

Code: Select all

/opt/local/bin/convert DSC_9087.NEF DSC_9087.jpg
convert: delegate failed `"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"' @ error/delegate.c/InvokeDelegate/1310.
convert: unable to open image `/var/tmp/magick-49712wdmi9chWONiz.ppm': No such file or directory @ error/blob.c/OpenBlob/2709.
convert: no images defined `DSC_9087.jpg' @ error/convert.c/ConvertImageCommand/3210.
I have tried ImageMagick 6.9.0-0 installed with ports and 6.9.1-6 Q16 installed with HomeBrew on a less than 1 week old MacBook Pro running 10.10.4. Both have the same result.

Are there any suggestions?

Thank you,

Ben
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Convert NEF D80 issue

Post by Bonzo »

This problem has come up a few times before. I do not think you can search for NEF as the word id to short so try Nikon. Here is a link to one result: viewtopic.php?f=1&t=8698&p=26789&hilit=nikon#p26789

I assume you have tried converting other files with Imagemagick to confirm it is installed and working?
bmayer
Posts: 3
Joined: 2015-07-06T11:35:12-07:00
Authentication code: 1151

Re: Convert NEF D80 issue

Post by bmayer »

It will convert jpg to png.

The linked post suggested to reinstall libraries. I downloaded binaries, and copied to the various /lib paths and am getting the same error.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Convert NEF D80 issue

Post by magick »

ImageMagick uses the ufraw-batch delegate program to read image files in the NEF format. You will need the ufraw-batch utility in your execution path. If you type 'which ufraw-batch' and it returns 'Command not found', ImageMagick will be unable to read the NEF format.
bmayer
Posts: 3
Joined: 2015-07-06T11:35:12-07:00
Authentication code: 1151

Re: Convert NEF D80 issue

Post by bmayer »

Needed to install 'ufraw' with brew, but same result. Other debugging options?

Code: Select all

Benjamins-MBP:100NCD80 bmayer$ which ufraw-batch
/usr/local/bin/ufraw-batch
Benjamins-MBP:100NCD80 bmayer$ convert DSC_9087.NEF DSC_9087.jpg
convert: UnableToOpenBlob `/var/tmp/magick-54097mk5mdxQgKVhV.ppm': No such file or directory @ error/blob.c/OpenBlob/2695.
convert: NoImagesDefined `DSC_9087.jpg' @ error/convert.c/ConvertImageCommand/3212.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Convert NEF D80 issue

Post by fmw42 »

After installing ufraw, did you reinstall IM?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert NEF D80 issue

Post by snibgo »

I don't know the answer, though I see the error message in the first post was "delegate failed", and in the last post was "UnableToOpenBlob". You might try "-verbose" as the first option for possible insight. Then try "-debug all".
snibgo's IM pages: im.snibgo.com
Post Reply