Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
/ ImgHash Public archive

A simple tool to compute image hashes as well as comparing images.

License

Notifications You must be signed in to change notification settings

StevenCyb/ImgHash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImgHash

This is a simple CLI tool that can compute hashes of jpg, png, webp and gif as well as compare images. Currently the following algorithms are supported:

  • Average Hashing (aHash)
  • Block Hashing (bHash)
  • ColorMoment Hashing (cmHash)
  • Difference Hashing (dHash)
  • Median Hashing (mHash)
  • Perceptual Hashing (pHash)
  • Wavelet Hashing (wHash)

GUI

There is an quick and dirty GUI implementation that works but is not covered with unit tests and refactored.

CLI

Hash image

Hashing an image is can be done using the following command.

imghash get phash image.png
$ 00000e5e7e7f3d00%

With the the format flag, binary output format can be selected.

imghash get --f binary phash image.png
$ 0000000000000000000011100101111001111110011111110011110100000000%

Compare images

Images can be compared using the following command

imghash compare phash image_a.png image_b.png
$ 0.91%