uncaught exception 'ImagickException' with message 'Compare images failed'
This is the first time I use ImageMagick, and I am doing a small test just to see if it actually work for what I want it to work; however, I am getting the error 'compare images failed'. It is very possible that I am doing something wrong since I really don't know exactly how Imagick works. I am open to other suggestions, I just want to compare two images with very few changes.
My testing code looks like:
For future users who are having the same issue, I got it to work. If you try to compare two images with different dimensions, this error will appear. All what I did to fix this was to re-size both images so that both have the same dimensions. In my case looks something like this: