Error instantiating the Image object
pedgarcia opened this issue · comments
When I call the function to compare two images I am getting the following error:
Unhandled rejection ReferenceError: Image is not defined
at loadImageData (/Users/pgarcia/work/github/qa/dispatcher-ui/lib/imagediff/node_modules/resemblejs/resemble.js:150:26)
I can't find the Image object and where is it declared?
I wonder what I am missing here?
Thanks
Paulo
Same problem here!
https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image
Image
is only available in the browser; this library is only designed to work in a browser.