Questions tagged [resemblejs]
23 questions
6
votes
0 answers
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 otherwise visible and I found Resemble.js which is a…

TenebrisNocte
- 179
- 10
4
votes
1 answer
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 = require('express');
var fs = require('fs');
var…

timothyclifford
- 6,799
- 7
- 57
- 85
3
votes
0 answers
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.
var…

Kabhi
- 135
- 1
- 12
2
votes
0 answers
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 …

jorge hernandez
- 21
- 1
2
votes
1 answer
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:\\Users\\Image2.png';
var diffImage =…

Sim_8
- 56
- 4
2
votes
1 answer
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 far, but I've hit a wall with this.
function…

Paul Coghill
- 667
- 6
- 27
2
votes
4 answers
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 file:
var url, screenshotRoot, modules, phantomCSS,…

vitto
- 19,094
- 31
- 91
- 130
1
vote
1 answer
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 a report due to a mismatch in screenshot but the only first test is…

Jn Neer
- 245
- 1
- 14
1
vote
0 answers
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 figured out that it has some problems. It doesn't…

Vojtech Cerveny
- 686
- 1
- 4
- 18
1
vote
1 answer
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 run the following:
nodejs test.js, I get the…

Michael Studebaker
- 586
- 8
- 20
0
votes
1 answer
resemblejs "npm run test" tests not passing, can't extend timeout
I have cloned the repo for the resemble.js project code (https://github.com/rsmbl/Resemble.js#readme) and have been attempting to test the software by using the "npm run test" command. The test suites fail and it does not accept…

Stackmda
- 11
- 2
0
votes
0 answers
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 outputs the tolerance level at the end of the…

Nicholas Cik
- 35
- 4
0
votes
2 answers
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('fs');
var path = require('path');
// The…

ajohnson
- 51
- 5
0
votes
0 answers
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 the image dimensions. the Resemble.js line is…

sara
- 1
- 1
0
votes
1 answer
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).ignoreColors().onComplete(function(data)
…

source
- 21
- 5