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

Aug 31, 2013 at 5:12 PM
Hi!, looking for some help with the compare feature. It seems straight forward but no matter what two images I compare the MagicErrorInfo properties are always 0.

This is the code in simple form where I'm attempting to compare to different images.
    Private Sub Testing()
        Dim BaseImage As MagickImage = New MagickImage("C:\temp\BaseImage.jpg")
        Dim CompareImage As MagickImage = New MagickImage("C:\temp\CompareImage.jpg")
        Dim CompareInfo As MagickErrorInfo = BaseImage.Compare(CompareImage)

        If CompareInfo.MeanErrorPerPixel > 0 Then
            ' Do Something
        End If
    End Sub
I'm I missing something or simply doing this incorrectly?
Aug 31, 2013 at 7:53 PM
I found the issue, the two images were not the same size. After using .resize its working!
Aug 31, 2013 at 8:42 PM
Edited Aug 31, 2013 at 8:46 PM
You should have received an exception but Magick++ is hiding it by accident. I have committed a fix for ImageMagick and this will be fixed in the next release of Magick.NET. Thank you for finding this bug in ImageMagick.