Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upTest fails with cryptic error message if fresh image is larger then baseline image (imagemagick) #75
Comments
|
Any progress? It's been 1.5 year already... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Output
assertSameFiles Needle should either state that the images are similar or that they are not.
Actual Output
ValueError: ("could not convert string to float: b'idt'")thrown at /needle/engines/imagemagick_engine.py:24compare_stderrin that situation yieldscompare: width or height exceeds limit [...]incompare_cmdin a console yields the same error-subimage-searchis to find a smaller image inside a bigger one.Reproduce
magick compare -metric RMSE -dissimilarity-threshold 1.0 -subimage-search 1.png 2.png d.pngcompare: width or height exceeds limit '1.png' @ error/cache.c/OpenPixelCache/3491.Suggestions
We could order the images by size. However I guess that will not fix the problem is one image is wider but not as high as the other one.
Contribution
I tried to run the tests but many fail on my system. I'm not sure if that is a problem with the tests or with me not using the right commands. I created an issue #74
If this issue is solved I'd be happy to implement my the reordering of the images.