With your images, I get your error message:
Code: Select all
compare -metric rmse -subimage-search reso1_res.png settingsReso1_1.png null:
compare: image morphology differs `reso1_res.png' @ error/compare.c/SimilarityMetricImage/1988.
I created two new images of the same size and it works fine.
Code: Select all
compare -metric rmse -subimage-search \( -size 23x1754 gradient: \) \( -size 16x16 xc:gray50 \) null:
173.114 (0.00264155) @ 0,872
However, it fails, saving the gradient and the gray50 image as png
Code: Select all
convert -size 23x1754 gradient: grad.png
convert -size 16x16 xc:gray50 gray50.png
compare -metric rmse -subimage-search grad.png gray50.png null:
compare: image morphology differs `grad.png' @ error/compare.c/SimilarityMetricImage/1988.
But saving as tif, works.
Code: Select all
convert -size 23x1754 gradient: grad.tif
convert -size 16x16 xc:gray50 gray50.tif
compare -metric rmse -subimage-search grad.tif gray50.tif null:
173.114 (0.00264155) @ 0,872
Looks like it is a PNG issue with very small images, since it worked fine for me with larger PNG images.