Extract JPG from DNG
Posted: 2009-01-12T15:04:03-07:00
I am trying to extract a jpg thumbnail and a jpg resized image from a DNG file by calling Imagemagick (v6.3.4 - Windows) from a running program to do the conversion.
I am using a command similar to the following (also tested on the command line, same result):
>convert cpySrc.dng -auto-orient -colorspace RGB -flatten -thumbnail 1024x1024 test.jpg
but the output, test.jpg, is blurred when I do this; this command seems to give me a up-scaled version of the embedded jpeg preview; the original dng is about 2900x4500 pixels.
I have tried:
>convert dng:cpySrc.dng dng_testdng.jpg
but the result does not look like the preview image at all.
When I run:
>convert cpySrc.dng testdng.jpg
the result is a 171x256 pixel jpg image, which is useable for the thumbnail image I require.
In short, I can extract the thumbnail OK, but the resized image does not extract correctly from the source image for a best-fit for a 1024x1024 resize request.
Do you have any suggestions for a command line that may solve this problem?
I am using a command similar to the following (also tested on the command line, same result):
>convert cpySrc.dng -auto-orient -colorspace RGB -flatten -thumbnail 1024x1024 test.jpg
but the output, test.jpg, is blurred when I do this; this command seems to give me a up-scaled version of the embedded jpeg preview; the original dng is about 2900x4500 pixels.
I have tried:
>convert dng:cpySrc.dng dng_testdng.jpg
but the result does not look like the preview image at all.
When I run:
>convert cpySrc.dng testdng.jpg
the result is a 171x256 pixel jpg image, which is useable for the thumbnail image I require.
In short, I can extract the thumbnail OK, but the resized image does not extract correctly from the source image for a best-fit for a 1024x1024 resize request.
Do you have any suggestions for a command line that may solve this problem?