Skip to content

lunardog/imagehash-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImageHash CLI

travis

Image Hash Command Line Interface

A command line wrapper of the imagehash python library.

Installation

$ pip install imagehash-cli

Usage

To use it:

$ imagehash --help

To get an image hash:

$ imagehash image.jpg
1a787a7a60727a7f%

There a several hash types.

$ imagehash image.jpg --hash perception  # perception
$ imagehash image.jpg --hash difference  # difference
$ imagehash image.jpg --hash wavelet     # wavelet
$ imagehash image.jpg --hash average     # average (this is the default)

You can also rename image files:

$ imagehash image.jpg --rename
image.jpg -> 1a787a7a60727a7f.jpg

Rename multiple files to their hashes (quick way to remove duplicates):

$ imagehash image1.jpg image2.jpg image3.jpg --rename

Rename all jpg files in a directory (incl. subdirectories) to their hashes:

$ find . -name '*jpg' -execdir imagehash {} --rename \;

This should reduce all duplicates (if in the same subdir) to a single file.

About

Image Hash Command Line Interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages