Skip to content
This repository was archived by the owner on Mar 26, 2019. It is now read-only.

jodelamo/imageq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imageq

Compares images by temporarily loading images on canvas elements and doing a size and byte to byte comparison. For use in browser environments.

Prerequisites

Promise availability. If your browser doesn't support it, you need a polyfill, such as es6-promise.

Install

npm install --save imageq

Usage

import imageq from 'imageq';

const images = [
  '/path/to/images/1.png',
  '/path/to/images/2.png',
  '/path/to/images/3.png'
];

imageq(images).then(identical => {
  if (identical) {
    // ...
  }
});

License

MIT

About

(Too) simple image comparison

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors