Hey everyone, I was wondering if I could get some assistance with converting DNG to JPG using ImageMagick.
The DNG files have several exif and crs tags in the meta data.
Example:
...
...
...
<rdf:Description rdf:about=""
xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/">
<crs:RawFileName>479641.dng</crs:RawFileName>
<crs:Version>4.6</crs:Version>
<crs:WhiteBalance>Custom</crs:WhiteBalance>
<crs:Temperature>6000</crs:Temperature>
<crs:Tint>0</crs:Tint>
<crs:Exposure>+0.70</crs:Exposure>
<crs:Shadows>0</crs:Shadows>
<crs:Brightness>+50</crs:Brightness>
<crs:Contrast>+25</crs:Contrast>
<crs:Saturation>+12</crs:Saturation>
<crs:Sharpness>25</crs:Sharpness>
...
...
...
If I drop one of these files into photoshop, I get the "Camera Raw" conversion dialog, where it applies several colour options (custom white balance, etc) to the image. I can choose to change any of the sliders, and then open the image in photoshop. The values of these colour sliders applied to the -original- image. The initial values of the sliders are exactly those defined in the above meta data tags.
When I use the following convert command:
convert -auto-orient filename.dng[0] -alpha Off -resize 1024x1024 filename.jpg
It seems I get a jpg of the -original- image ("As Shot" White Balance option in the photoshop dialog, as opposed to "Custom").
I tried applying a colour profile like this:
convert -auto-orient filename.dng[0] -alpha Off -resize 1024x1024 -profile sRGB.icm +profile "*" filename.jpg
Same result.
Using ImageMagick, is there a way for me to save the image with the image data modified as if the "Custom" options were applied?
I've read over several "convert" command line options, but haven't had any success getting what I want.
In advance, I'd like to express my appreciation for any help.
DNG to JPG
-
- Posts: 1015
- Joined: 2005-03-21T21:16:57-07:00
Re: DNG to JPG
IM uses the dcraw program to convert raw files so you will have to edit your delegates.xml file to make it handle the raw file differently. See http://www.imagemagick.org/Usage/formats/#crw for a description of how raw camera files are handled.
Pete
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
See my message in this topic for a link to a zip of all the files.