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

Latest commit

 

History

History
42 lines (31 loc) · 993 Bytes

README.md

File metadata and controls

42 lines (31 loc) · 993 Bytes

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%