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
[...]