imgdups groups images from a given folder based on their perceptual hash.
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
[...]