possible bug compare IM 6.9.9.33 and IM 7.0.7-21
Posted: 2018-01-07T14:18:35-07:00
If I try to compare two different size images with subimage-search in the wrong order, I get a proper error message.
compare: width or height exceeds limit `ROSE' @ error/cache.c/OpenPixelCache/3905.
But if I leave off the -subimage-search, I thought it should give a message that the two images are not the same sizes. But it seems to try to match the smaller first image with some (possibly the last) part of the larger second image.
45304.5 (0.691302)
Switching order also works.
45304.5 (0.691302)
I was under the impression that the above should fail without the -subimage-search. Am I mistaken? If it does work, which match is it using when the smaller image is first. And likewise how is it matching when the smaller image is second?
Code: Select all
compare -metric rmse -subimage-search rose: logo: diff.pngBut if I leave off the -subimage-search, I thought it should give a message that the two images are not the same sizes. But it seems to try to match the smaller first image with some (possibly the last) part of the larger second image.
Code: Select all
compare -metric rmse rose: logo: diff.pngSwitching order also works.
Code: Select all
compare -metric rmse logo: rose: diff.pngI was under the impression that the above should fail without the -subimage-search. Am I mistaken? If it does work, which match is it using when the smaller image is first. And likewise how is it matching when the smaller image is second?