mapbox / pixelmatch

The smallest, simplest and fastest JavaScript pixel-level image comparison library
ISC License
6.1k stars 304 forks source link

True or false for same image? #128

Closed Jumbo125 closed 1 year ago

Jumbo125 commented 1 year ago

Hello is it possible to get only true or false, if the images are the same? i need a function to compare to pictures of a picture from digital time clock. if the pics are same, it is the same time. if the pictures are different, i know that's a different time

thank you

mourner commented 1 year ago

pixelmatch(...) === 0 will return true if images are equal.

Jumbo125 commented 1 year ago

Okay i will try it.

Can I include pixelmatch locally in my browser? The install tutorial shows only a online method for browser