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

New Post: Adding installed Image Color Profiles (.icm) into an image in C#

$
0
0
I just tried the following:
using (MagickImage before = new MagickImage(@"C:\test\jpg\image_1.jpg"))
{
  ColorProfile colorProfile = new ColorProfile(@"C:\test\jpg\sRGB_Color_Space_Profile.icm");
  before.AddProfile(colorProfile);
  before.Write(@"C:\test\jpg\image_1_with_profile.jpg");

  using (MagickImage after = new MagickImage(@"C:\test\jpg\image_1_with_profile.jpg"))
  {
    Console.WriteLine(colorProfile.Equals(after.GetColorProfile()));
  }
}
The output I am getting is 'True'. Are you using an older version of Magick.NET?

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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