3 ms·
Using open source software is usually faster. Practical example: The other day I needed to 1) Take a screen-shot of a web page, 2) Get a visual diff if it had c
by z3t4 10y ago
Using open source software is usually faster. Practical example: The other day I needed to 1) Take a screen-shot of a web page, 2) Get a visual diff if it had changed, and the solution looked kinda like this:
function takeScreenshot(webUrl) {
var webshot = require('webshot');
...
}
function visualDiff(imgPath1, imgPath2) {
var imageDiff = require('image-diff');
...
}