Page 1 of 1

"no encode delegate" error for dng format

Posted: 2009-10-07T17:57:01-07:00
by sdickers
Hello-

I'm trying to write a .dng file using the write() function of the Image class. I am successfully able to write my image in the .tif format. When I change the file extension on the output file name--i.e., the code goes from image.write("output.tif") to image.write("output.dng")--I receive the following error:
"no encode delegate for this image format 'outputMagick.dng' @ constitute.c/WriteImage/1114"

To determine whether this was just an issue with my coding, I opened a command prompt and tried these commands:
> convert logo: logo.tiff
> convert logo: dng:logo.dng

The conversion to .tif was successful. The conversion to .dng (with or without the dng: prefix) produced the same error:
"convert: no encode delegate for this image format 'logo.dng' @ constitute.c/WriteImage/1114"

As per a previous post, I've checked my delegates.xml file. I have a line that says:
<delegate decode="dng:decode" stealth="True" command="dcraw.exe -4 -w -O "%u.ppm" "%i"" />

Since there is no "encode" term, does this mean that IM can't write to dng, just read from it?

I am using the ImageMagick-6.5.6-8-Q16-windows-dll.exe binary with Windows XP. Any explanations would be greatly appreciated!

Thank you

Re: "no encode delegate" error for dng format

Posted: 2009-10-07T18:58:11-07:00
by magick
ImageMagick supports reading a DNG image but does not support writing it. Notice there is no 'w' in the mode (e.g. w for write):

Code: Select all

-> identify -list format
   Format  Module    Mode  Description
-------------------------------------------------------------------------------
...
      DNG  DNG       r--   Digital Negative
...