"no encode delegate" error for dng format

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
sdickers

"no encode delegate" error for dng format

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

Re: "no encode delegate" error for dng format

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