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

New Post: ColorProfiles not matching

$
0
0
Using the latest release, shouldn't the ColorProfiles match:
        MagickImage miSource = new MagickImage(filePath);
        ColorProfile cp1 = miSource.GetColorProfile();
        ColorProfile cp2 = miSource.GetColorProfile();

        if (cp1 != cp2)
        {
            throw new Exception("not correct color profile");
        }
The following works(no exception thrown):
         if (cp1.ToByteArray().Length != cp2.ToByteArray().Length)
         {
            throw new Exception("not correct color profile");
         }
Let me know if you need my source image.

Viewing all articles
Browse latest Browse all 3693

Trending Articles