Newest 'resemblejs' Questions - Stack Overflow

Questions tagged [resemblejs]

The tag has no usage guidance.

0
votes
0answers
10 views

Resemble helper does not output the mismatch percentage

I installed the resemble package required by CodeceptJS. When running the test it does not output the mismatch percentage and does not save the comparison image in the diff folder specified. It only ...
1
vote
1answer
24 views

Test Cafe : Unhandled Promise rejection in First test makes second test pass even when It has to be failed by throwing Unhandled Promise Rejection

I am using a function using Resemble.JS library in Test Cafe to compare the actual and base screenshots. In my fixture, I have two tests and both tests should have been failed in report due to ...
0
votes
0answers
28 views

Automatic webcam image upload to database and comparison

I would like my webcam to take a picture every 2 minutes, store these pictures and use any library that allows me to compare differences between images - in the browser. For example there are two ...
1
vote
0answers
172 views

nodejs error when installing canvas-prebuilt on arm

i'm trying to install resemble with "npm i resemblejs" but appears node-pre-gyp ERR! install error node-pre-gyp ERR! stack Error: 404 status code downloading tarball https://github.com/...
0
votes
2answers
98 views

Resemblejs in jest hangs

I'm using ResembleJS for image comparison. I can get it to run when I run it in a standalone script. Here's the code: var compareImages = require('resemblejs/compareImages'); var fs = require(...
6
votes
0answers
368 views

Pass image src to function instead of files

So I have a webpage with two image elements. It is basically a website where you upload an image and it encrypts a secret massage with steganography. I want to show the difference that is not ...
0
votes
0answers
65 views

ResembleJS TypeError: hiddenImage.setAttribute is not a function

I am experimenting with image to image comparison with Resemble.js, and I have run into an error I don't know how to get past. I have the canvas dependency installed and my console logs are showing ...
0
votes
1answer
91 views

importing js module in JS script

How to import resemblejs module in my JS script ? My script contains a function like - function compareImages(picture1,picture2) { var diff =resemble(picture1).compareTo(picture2)....
1
vote
0answers
39 views

Javascript sync with wd-sync in mocha test

can you help with my sync-problem in mocha test? I have this test in mocha, I use wd-sync and resemble packages. wd-sync is for avoiding Promises and callback hell and it is great package, but I ...
-1
votes
1answer
158 views

Cannot install npm i node-resemble OSX

tmp-125-48:engineerappcopy User$ npm i node-resemble npm WARN package.json cloudfmapp@1.0.0 No README data > canvas@1.6.2 install /Users/User/Documents/dev/engineerappcopy/node_modules/node-...
-1
votes
1answer
28 views

Best way for implementing JavaScript lib in Java WebApplication

I am an Android developer and I am new to java web development, so please apologize if my thought is wrong. In our web app project we have to compare images (GIF/PNG/JPEG) and have to show the result. ...
0
votes
0answers
200 views

Resemble.js using promises in a loop

I have a similar issue to this: https://github.com/Huddle/Resemble.js/issues/57. However he says that he is using promises and async to loop over, so that it takes 4-5 to do 900 images! Currently for ...
0
votes
1answer
448 views

Compare multiple part of an image through canvas using resemble.js

I am trying to compare different blocks of an image(filled.png) with a specific block of another image(blank.png). So far I have tried this :- var canvas = document.createElement('canvas'); var ...
0
votes
0answers
75 views

How to get mismatch ratio of two images with imagemagick?

I am looking for faster alternatives to ResembleJS for image comparison. So far I am able to create the similar output image like ResembleJS does: convert fullhd.jpg \ \( -clone 0 fullhd2.jpg -...
2
votes
1answer
374 views

Resemble js generating empty diff image

I am trying to do a comparison of 2 images and highlight the difference in a third Image using node-resemble-js. Tried the following code: var imgData1 = 'C:\\Users\\Image1.png'; var imgData2 = 'C:\\...
0
votes
0answers
38 views

Testing images directly rather than web pages in PhantomCSS

The demonstrations of PhantomCSS commonly use web pages in test. Is there a way to test images instead?
0
votes
0answers
102 views

JavaScript: Cut circular small images out of a big one and compare them using resemble.js

I'd like to cut several circular parts (Px) out of a big image (A) and compare them pixel by pixel to same sized round portions (Qx) of another big image (B) using resemble.js (or similar, but I did ...
1
vote
1answer
499 views

NodeJS import error

I'm trying to use the resemblejs library (http://huddle.github.io/Resemble.js/) to compare two images. However, when I have created a directory and added resemblejs as a dependency, but when I try to ...
4
votes
1answer
1k views

Writing buffer response from resemble.js to file

I'm using node-resemble-js to compare two PNG images. The comparison happens without issue and I get a successful/relevant response however I'm having trouble outputting the image diff. var express =...
2
votes
0answers
1k views

How to use Resemble.js ? Can it be used to compare one just canvas drawing and one image?

I have two image object ak whiteimg. User is clearing the area of one image and i want to compare the two images every 2 sec. <script src="http://huddle.github.io/Resemble.js/resemble.js"></...
0
votes
1answer
607 views

PhantomJS screenshots and compare (Resemble.js?)

I'm trying to take 2 screenshot from a website - One before an injection into the site, and one after. Problem is - when I try to take the first screenshot after all the assets were loaded (and ...
2
votes
1answer
2k views

Node Canvas/Resemble.js Error: Image given has not completed loading at load

I'm trying to use Resemble.js in node. I had a bit of trouble getting canvas/cairo installed (something to do with a mix of OS X Mavericks/XQuarts and Homebrew) but got there eventually. Got pretty ...
2
votes
4answers
1k views

Testing phantomCSS won't find ResembleJs container

I'm trying to add visual comparison tests to my layouts but it seems I've not configured my testing environment correctly. I'm using: CasperJS PhantomJS PhantomCSS ResembleJS This is my test JS ...