Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: CR2 to TIFF Conversion without Color Change

$
0
0
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).
Image


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:
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?

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>