Find duplicate images and move into the specific directory sorted by name.
- All images
/demo
a.jpg
b.jpg
c.jpg
d.jpg
e.jpg
- After duplicate removal
/demo
d.jpg
/twins
a.jpg
a_c.jpg
b.jpg
b_e.jpg
Python 3.6+
pip install imagededup
python src/main.py /all/images/dir /duplicate/images/dir
{
// find duplicate images in specific order
// 'PHash' | 'CNN'
"find": ["PHash", "CNN"],
"pick": {
// pick images you want to remain
"best": {
// 'size' | 'date' | 'name'
"indicator": "size",
"biggest": true
},
// rename duplicate images
// {base_img_name}({symbol}{index}){original_name}{extension}
// e.g. bar.jpg -> foo($1)bar.jpg
"secondary": {
"symbol": "$",
"with_ori_name": false
},
// auto remove duplicate images
"auto_remove_secondary": false
}
}