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

New Post: Applied ColorProfiles not having an effect on MagickImages

$
0
0
I had actually already tried manually setting an sRGB profile just as you suggested, but it made no difference. It seems to need to be embedded in the image file to begin with. To be clear, this is what I am currently running:
image = new MagickImage();
image.Read(@"E:\test.jpg");
image.AddProfile(ColorProfile.SRGB);      
image.AddProfile(new ColorProfile(@"C:\...\LP2475w_20090407.icc"));
which does not apply the colour profile
image = new MagickImage();
image.Read(@"E:\test sRGB.jpg");     
image.AddProfile(new ColorProfile(@"C:\...\LP2475w_20090407.icc"));
... whereas this does (test sRGB.jpg is exactly the same image file, but set in Photoshop to use the default system sRGB profile instead of not being colour managed; the image data is identical).

As for RemoveProfile(), I have played around a bit more. It seems to work only on profiles that were added programmatically. In other words, it will remove a colour profile that was previously added with AddProfile(), but it will not remove a profile that is associated with the image in the file on disk that the image was read from.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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