You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've using node-canvas with resemble.js. However I've noticed some differences in the actual result of the image comparison between a real browser and Node. The only thing I've found so far that differs is the following lines of code.
I'm not sure that you should actually be able to do it. Cause I don't find any documentation on what you can actually do with the image object. So some clarification on that would be nice.
Issue or Feature
The problem is that the hiddenImage has the same dimensions after I've tried to set them to new values.
So when the image is drawn on the canvas it will have the wrong dimensions. And therefore the comparison fails.
I guess the difference is whether the browser should scale the image as an image object or if the canvas should do it. I guess the difference would be very small. But when comparing images even small changes becomes a problem. However my problem might be something else, so I'll continue to investigate.
I've using node-canvas with resemble.js. However I've noticed some differences in the actual result of the image comparison between a real browser and Node. The only thing I've found so far that differs is the following lines of code.
I'm not sure that you should actually be able to do it. Cause I don't find any documentation on what you can actually do with the image object. So some clarification on that would be nice.
Issue or Feature
The problem is that the hiddenImage has the same dimensions after I've tried to set them to new values.
So when the image is drawn on the canvas it will have the wrong dimensions. And therefore the comparison fails.
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: