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

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
Ken Rahaim
Posts: 3
Joined: 2012-04-25T14:42:44-07:00
Authentication code: 13

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

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
Ken Rahaim
Posts: 3
Joined: 2012-04-25T14:42:44-07:00
Authentication code: 13

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

Post 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!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
Ken Rahaim
Posts: 3
Joined: 2012-04-25T14:42:44-07:00
Authentication code: 13

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

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
kiarash
Posts: 1
Joined: 2013-07-18T01:36:15-07:00
Authentication code: 6789

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

Post 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 ?
Post Reply