Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lunardog/imagehash-cli
Image Hash Command Line Interface
https://github.com/lunardog/imagehash-cli
Last synced: 8 days ago
JSON representation
Image Hash Command Line Interface
- Host: GitHub
- URL: https://github.com/lunardog/imagehash-cli
- Owner: lunardog
- License: mit
- Created: 2017-11-21T04:56:37.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-01T23:36:34.000Z (over 5 years ago)
- Last Synced: 2024-10-14T04:27:30.490Z (23 days ago)
- Language: Python
- Size: 7.81 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ImageHash CLI
![travis](https://travis-ci.org/lunardog/imagehash-cli.svg?branch=master)
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.jpgRename 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.