Skip to content
/ imgdups Public

Tool to group images from a given folder based on their perceptual hash.

Notifications You must be signed in to change notification settings

zkvL/imgdups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Dups

imgdups groups images from a given folder based on their perceptual hash.

Install & Usage

Once Go is installed and configured, run:

❯❯❯ go install github.com/zkvL/imgdups@latest
❯❯❯ imgdups -h
Usage of imgdups:
  -dir string
        Images folder path
  -quiet
        If true, won't print the moved files (default false)
  -workers int
        Number of workers to run concurrently (default 100)

For a given folder structure containing images, such as:

❯❯❯ tree ss
ss
├── img1.png
├── img2.png
├── img3.png
├── img4.png
[...]

After running imgdups the images will be grouped by its perceptual hash into subfolders for easy review.

❯❯❯ imgdups -dir ss/ -workers 50 -quiet
❯❯❯ tree ss
ss
├── hashed
│   ├── 0000000000000000
│   │   ├── img5.png
│   │   ├── img7.png
│   │   └── img3.png
│   ├── 0c08000000000000
│   │   └── img6.png
│   ├── c000000000000000
│   │   ├── img8.png
│   │   ├── img10.png
│   │   ├── img2.png
│   └── f177700000000000
│   │   ├── img9.png
│   │   ├── img1.png
│   │   ├── img4.png
[...]

About

Tool to group images from a given folder based on their perceptual hash.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages