This project has moved and is read-only. For the latest updates, please go here.

CR2 to TIFF Conversion without Color Change

Mar 18, 2014 at 1:08 PM
Edited Mar 18, 2014 at 1:26 PM
Hi the Magick.Net community,

I am trying to convert CR2 file to Tiff without changing the color.

My CR2 Files' color profiles are AdobeRGB1998, but not embedded color profile. It has the space name but not the data, so Magick.Net can not recognize the profile as AdobeRGB so it recognizes as default (sRGB).

According the my reads on other related discussions, it will not be matter if I use this kind of code:
 using (var image = new MagickImage(CR2Path))
                image.RenderingIntent = RenderingIntent.Absolute;
                //Image does not have ColorProfile but have ColorSpace as sRGB
                //Hopefully it will recognize when I assign with AddProfile
                //Source Profile
                //Target Profile
                //Code can be seen silly to assing source and target same profile but if I don't, the target profile becomes sRGB not AdobeRGB

The resuts are in given image:
Left one is original CR2 Right one is the output.
All of them is AdobeRGB space. It was checked in Photoshop.

How can convert the image that results will be exactly same?
Mar 18, 2014 at 2:03 PM
Can you post a link to your cr2 image? And which version of dcraw are you using, or where did you download it? And can you post an image that contains the expected colors?
Mar 18, 2014 at 2:46 PM
Hi again,

I use but I think it uses ImageMagick. So the ImageMagick has dcraw 9.19

I posted Photoshop tiff conversion of the CR2 image also. It is same with CR2. But with Magick.Net it like take little more exposure.


My CR2 file is :
Mar 18, 2014 at 2:54 PM
Which version of Magick,NET are you using and did you also install ImageMagick?
Mar 18, 2014 at 2:59 PM
Magick.Net-Q16-x64 Version:
Mar 18, 2014 at 3:13 PM
Edited Mar 18, 2014 at 3:26 PM
Can you post a link to the converted with Photoshop image so I can compare it with the result from Magick.NET?
Mar 18, 2014 at 3:40 PM
My Output:

You can also convert CR2 to Tiff with Photoshop
The results are different
Mar 18, 2014 at 3:48 PM
I meant the output from CR2 to tiff with Photoshop. I do not have Photoshop.
Mar 18, 2014 at 3:59 PM
Sorry for misunderstanging.

I am uploading the photoshop output image.
Mar 18, 2014 at 4:10 PM
Mar 19, 2014 at 8:54 AM
I cannot figure out how to get the same colors as the image from photoshop. Maybe you could ask your question on the ImageMagick forum: And once we figure out the correct commands on the command line I can help you translate them to Magick.NET