Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could parse comparison output: compare: width or height exceeds limit #49

Closed
Aarushigarg3 opened this issue Feb 10, 2020 · 8 comments
Closed

Comments

@Aarushigarg3
Copy link

Getting the following issue while executing the visual automation test cases:

Could parse comparison output: compare: width or height exceeds limit @ error/cache.c/OpenPixelCache/3671.

@jessezach
Copy link
Owner

@Aarushigarg3 Could you please update the library to a later version and see if it still persists?

@Aarushigarg3
Copy link
Author

Aarushigarg3 commented Feb 10, 2020

@jz-jess i have the version robotframework-eyes 1.3.0, but still getting the same issue
Screenshot 2020-02-10 at 5 28 13 PM

@jessezach
Copy link
Owner

jessezach commented Feb 10, 2020

@Aarushigarg3 Could you run command compare -metric RMSE -subimage-search -dissimilarity-threshold 1.0 image1_path image2_path image3_path on your terminal and confirm the output please?
replace image_path with the path to your expected and actual images

@Aarushigarg3
Copy link
Author

@jz-jess gave the whole path, but still couldn't get through, getting same error!
Screenshot 2020-02-11 at 12 57 37 PM

@jessezach
Copy link
Owner

You also need to pass a third argument, image path to generate the diff image

@Aarushigarg3
Copy link
Author

@jz-jess I did that as well

Screenshot 2020-02-11 at 1 15 54 PM

@jessezach
Copy link
Owner

@Aarushigarg3 This is an issue with ImageMagick and not with the library. The size of the images being compared is exceeding the limit set in Imagemagick policy in your machine. You could try increasing the limit. Please check
http://www.imagemagick.org/discourse-server/viewtopic.php?t=34044

I will look at resizing the images to an acceptable limit before comparing for the next release. Could you tell me what the limit for height width is in your machine?

@jessezach
Copy link
Owner

Closing this on account of inactivity. Feel free to re-open if necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants