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:
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?
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
image.AddProfile(ImageMagick.ColorProfile.AdobeRGB1998);
//Target Profile
image.AddProfile(ImageMagick.ColorProfile.AdobeRGB1998);
//Code can be seen silly to assing source and target same profile but if I don't, the target profile becomes sRGB not AdobeRGB
image.Write(tiffPath);
}
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?