r/Python • • Feb 17 '26

Discussion [ Removed by moderator ]

[removed] — view removed post

48 Upvotes

33 comments sorted by

View all comments

Show parent comment

-5

u/hdw_coder Feb 17 '26

Yes it is! Hope it suits your needs, let me know what you think.

You find it at: https://code2trade.dev/finding-and-eliminating-photo-duplicates-safely/

1

u/greg_d128 Feb 17 '26

So It's running. Not sure how long it is going to take. I also realized that I kinda lost track of my photo library. Apparently I have 446871 images in there. I was off by a bit.

-1

u/hdw_coder Feb 17 '26

Wow, 446,871 photos that is a huge collection. Runtime will vary a lot with hardware and even more with storage speed and where the files live (local SSD vs HDD vs NAS/network share).

In my script, total time is dominated by stage 1: hashing, because each file is opened/decoded, EXIF-transposed, thumbnailed, then hashed (dHash/pHash/wHash + optional colorhash) and optionally sharpness. That’s a mix of I/O + CPU decode.

 Best practical way to estimate: run a fixed benchmark a sample and extrapolate. Run on a known subset of 10,000 images, record total hashing time and multiply by 44.6871. That gives a rather accurate forecast because the workload is mostly linear.

 Succes!

 

0

u/greg_d128 Feb 17 '26

Thank you!