This project has moved and is read-only. For the latest updates, please go here.

ColorProfiles not matching

May 8, 2014 at 4:12 PM
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.
May 8, 2014 at 8:17 PM
Edited May 8, 2014 at 10:35 PM
You are getting a new Object every time so they will not be the same. I will have to make the ImageProfile class IEquatable.
May 8, 2014 at 8:18 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.