looks-same-plus
looks-same with automatic url downloading, jpg->png conversion and promises
Easy to use
Module usage
const lsp = const opts = undefined // e.g. { tolerance: 5 }, see https://github.com/gemini-testing/looks-same docs. const callback = undefined // node style callback support const r = await // see https://github.com/gemini-testing/looks-same docs for return value information requal && console || console
About
Tiny wrapper around looks-same to for a simple common use-case.
Why
With plain looks-same we have to convert JPG to PNG and download url's to local disk before we can compare them. This module handles those steps for you. +Promise support
For who?
How
Using jimp we download and/or convert images to PNG so that looks-same can process and compare them for us.
Similar
Test
tests against internet and local images with and without promises ( node style callbacks ).
npm test