UNPKG

phash-js

Version:

Perceptual image hashing in the browser without using HTML canvas

21 lines (19 loc) 501 B
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>pHash</title> <style> #output { margin: 5px 0; } </style> </head> <body> <input id="input" type="file" multiple="" accept="image/*" /><br /> <div id="output"></div> <script src="https://cdn.jsdelivr.net/npm/phash-js/dist/phash.js"></script> <script src="script.js"></script> </body> </html>