Page 1 of 1

Convert DNG with Color Correction

Posted: 2009-06-22T23:31:40-07:00
by Tamehome
Hi, I am using Software: ImageMagick-6.5.3-10-Q16 Static for Windows.

I am experiencing an issue when trying to convert a DNG file containing color correction metadata to another format, such as JPG. When I run the conversion, the output JPG appears fine, but only the original RAW data is used. If I use a program, such as Aperture, to make color corrections, such as changes to hue or tint, I think those changes are saved as XMP metadata embedded into the file, as opposed to being applied to the RAW data itself. However, it doesn't appear that the XMP correction metadata is being utilized when processing the DNG afterward using ImageMagick.

Is there an option, either in ImageMagick, or in the underlying DCRAW program used to process the DNG, that could utilize the color correction metadata? Unless I'm mistaken and the color correction information is stored elsewhere...?

Thanks,

Re: Convert DNG with Color Correction

Posted: 2009-06-23T06:04:15-07:00
by magick
Edit delegate.xml and add the -a option to the dcraw delegate for automatic white balance.

Re: Convert DNG with Color Correction

Posted: 2009-06-23T07:38:58-07:00
by Tamehome
Hi, thanks for the tip. I will test this out and post my results. Do you know if the -a parameter causes ImageMagick to perform its own white balance adjustment, or will it actually use the XMP parameters when making the white balance correction?

Thanks,

Re: Convert DNG with Color Correction

Posted: 2009-06-23T07:59:30-07:00
by Tamehome
Hi, it does appear that the -a parameter causes ImageMagick to perform its own form of white balancing (Average the whole image for white balance), as opposed to using the XMP color correction information embedded in the image. If you happen to have any other ideas of how ImageMagick or similar command line utility could do this, that would be great. Otherwise I may have to resort to using Adobe/Aperture type software to manually generate the color corrected JPG's, instead of using a more automated workflow.

Thanks,

Re: Convert DNG with Color Correction

Posted: 2019-10-11T13:11:09-07:00
by wiseman
Any further updates on this please with the latest imagemagick in place?

Re: Convert DNG with Color Correction

Posted: 2019-10-11T13:43:59-07:00
by fmw42
I do not think the color correction data and algorithms are known other than to Adobe. So Imagemagick is not likely going to be able to properly make those corrections.

I will defer to anyone who knows otherwise. If so, please point the development team to that reference

Re: Convert DNG with Color Correction

Posted: 2019-10-11T13:50:26-07:00
by snibgo
Tamehome wrote:Hi, it does appear that the -a parameter causes ImageMagick to perform its own form of white balancing...
That's not correct. "-a" is a parameter to dcraw, which does the white balancing.

Re: Convert DNG with Color Correction

Posted: 2019-10-14T10:43:31-07:00
by wiseman
snibgo wrote: 2019-10-11T13:50:26-07:00
Tamehome wrote:Hi, it does appear that the -a parameter causes ImageMagick to perform its own form of white balancing...
That's not correct. "-a" is a parameter to dcraw, which does the white balancing.
I think, Tamehome meant the same this as well as he had stated that it is not using the XMP parameters when -a option is used.