Page 1 of 1

IM v6.6.0-9 Fails to Convert Lightroom v4 DNG to JPG

Posted: 2012-04-25T14:58:53-07:00
by Ken Rahaim
I'm using a commercial DAMS that uses ImageMagick for file conversion. Up until just recently we've had no problem creating jpg thumbnails and preview images from dngs. But one of our users has begun to use Adobe Lightroom 4 (which uses the latest ACR; v7) and suddenly our implementation of IM can no longer generate jpgs from it. Here is the error our commercial software regurgitates when it runs into the LR4/ACR7 dng:
(tuser@si-dams203): convert /opt/artesia/temp/dng/NHB2012-00226.dng -define jpeg:size=944x708 -thumbnail 472x354 -auto-orient -unsharp 0x.5 /opt/artesia/temp/dng/NHB2012-00226-S.jpg
ufraw-batch: Cannot decode file /var/tmp/magick-XX4LaqqE
convert: delegate failed `"ufraw-batch" --embedded-image --black-point=auto --exposure=auto --create-id=no "--output=%u.png" "%i"' @ error/delegate.c/InvokeDelegate/1061.
convert: unable to open image `/var/tmp/magick-XX2LaqqE.ppm': No such file or directory @ error/blob.c/OpenBlob/2489.
convert: missing an image filename `/opt/artesia/temp/dng/NHB2012-00226-S.jpg' @ error/convert.c/ConvertImageCommand/2941.
All other dngs continue to convert to jpgs with no problem. I've attached a sample of the offending dng that causes this error. Any help would be appreciated in solving this.
--
Ken Rahaim
Smithsonian Institution

Re: IM v6.6.0-9 Fails to Convert Lightroom v4 DNG to JPG

Posted: 2012-04-25T15:07:02-07:00
by magick
Post a URL to one of the problematic DNG images. We need to download it and inspect it before we can offer a solution.

Re: IM v6.6.0-9 Fails to Convert Lightroom v4 DNG to JPG

Posted: 2012-04-26T06:48:03-07:00
by Ken Rahaim
Apologies. Meant to do that yesterday. Here's the dng:

http://dl.dropbox.com/u/75924495/NHB2012-00226.dng

Thanks for the quick reply!

Re: IM v6.6.0-9 Fails to Convert Lightroom v4 DNG to JPG

Posted: 2012-04-26T07:06:23-07:00
by magick
ImageMagick relies on an external delegate program to interpret DNG images. Ufraw-batch is a refactoring of dcraw. Neither can read your DNG image. Dcraw reports:
  • -> dcraw -c -w "NHB2012-00226.dng" >! NHB2012-00226.png
    Cannot decode file NHB2012-00226.dng
Ask the dcraw authors if they will support this image format. If so, the patch will automatically propagate to ImageMagick.

Re: IM v6.6.0-9 Fails to Convert Lightroom v4 DNG to JPG

Posted: 2012-04-26T10:09:33-07:00
by Ken Rahaim
Thanks for the very quick reply. Can you tell me what version of dcraw and/or ufraw that IM is using in v6.6.0-9?

I've sent an email to David and Udi.

Re: IM v6.6.0-9 Fails to Convert Lightroom v4 DNG to JPG

Posted: 2012-04-26T10:35:21-07:00
by magick
Dcraw / UFRaw is independent of the ImageMagick release. If you get a patched UFRaw, you can install it and ImageMagick will automagically use it.

Re: IM v6.6.0-9 Fails to Convert Lightroom v4 DNG to JPG

Posted: 2013-07-18T01:38:34-07:00
by kiarash
I still have this problem in 2013. Is there a known solution for this ? like should I update dcraw or imagemagick to solve the problem ?