DNG to JPG
Posted: 2009-03-27T07:47:41-07:00
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.
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.