DNG conversion

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
i_v
Posts: 2
Joined: 2011-05-29T07:52:38-07:00
Authentication code: 8675308

DNG conversion

Post by i_v »

Excuse me in advance if this is a FAQ, yet search returns nothing of this sort... So, given are:

WinXP SP3
IM-6.7.0-Q16-dll
raw images from a scanner saved in DNG format by, as far as I know, VueScan 9.something

convert dng:01.dng 01.tif

returns the following error: "Cannot use camera white balance"

The output TIFF file is created but is nearly black; only a keen eye may see that some shapes are present nevertheless, next to black at where it should be hightlights.

Some googling reveals that camera white balance is not stored in DNG. (Is it really so? I think experts may examine the format specification better than a user.) Yet there are some viewers that do open the files more or less correctly, two of them may be mentioned - FastStone and IrfanView. (Unfortunately, none of them can save in 48-bit TIFF.) Apparently they either read the white balance from the file correctly, or do use some presets by default. Why not IM?

Second, if the balance setting is really missing, then there should be an IM option to set it manually, shouldn't it?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: DNG conversion

Post by fmw42 »

It might help others to test and the IM developers, if you post a link to your DNG file.
i_v
Posts: 2
Joined: 2011-05-29T07:52:38-07:00
Authentication code: 8675308

Re: DNG conversion

Post by i_v »

Hmm... no available FTP at hand. Excuse my ignorance, how to attach binaries to posts at this board? In my profile I see the option "Manage my attachments" yet no option to make them.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: DNG conversion

Post by fmw42 »

i_v wrote:Hmm... no available FTP at hand. Excuse my ignorance, how to attach binaries to posts at this board? In my profile I see the option "Manage my attachments" yet no option to make them.

You cannot post images directly to this forum. Post them to some free image hosting service (google for them) and then put a link here to where you have hosted your image.
garland3
Posts: 1
Joined: 2011-11-07T18:51:19-07:00
Authentication code: 8675308

Re: DNG conversion

Post by garland3 »

I am having the same problem. I can not convert .dng files to anything.
Error:
[oracle@ecmdev0002 bin]$ ./convert /app/ecm/IMTest/frog.dng /app/ecm/IMTest/converted/frog.jpg
sh: ufraw-batch: command not found
convert: delegate failed `"ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"' @ error/delegate.c/InvokeDelegate/1058.
convert: unable to open image `/tmp/magick-UKmbf2GY.ppm': No such file or directory @ error/blob.c/OpenBlob/2589.
convert: missing an image filename `/app/ecm/IMTest/converted/frog.jpg' @ error/convert.c/ConvertImageCommand/3016.
[oracle@ecmdev0002 bin]$

Can someone help me? I saw a post that said to edit the delegates.xml but what do I change it to?
dng file reads:
<delegate decode="dng:decode" command=""ufraw-batch" --silent --create-id=also --out-type=png --out-depth=16 "--output=%u.png" "%i"" />
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: DNG conversion

Post by fmw42 »

sh: ufraw-batch: command not found
I am no expert on DNG files, but it would appear that you are missing the ufraw delegate library. However, I will defer to someone more knowledgeable than I on this matter.

If I am right then either you need to install the delegate library and recompile IM or IM cannot find the delegate library.

The usual way to confirm is

convert -list configure

then look to see if ufraw or something related is listed in the line DELEGATES.

It might help also to know what version of IM you are using, whether it was installed from binary or source and what platform you are on.
Post Reply