View Single Post
  #11  
Old 01-18-2010, 09:39 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Liberated View Post
maybe it can check for like a % match? I mean if even 50% matches that's already quite alot.
It's not quite that simple. The way it works is that it looks for heads with the exact same file size (down to the byte) from a list of corresponding head paths and file sizes. If it matches, it's most likely a duplicate. However, there are rare cases where there are two heads with the same file size, so it also compares the contents with a string check.

Changing this to actually load every file, parse it as a PNG/GIF/MNG, then compare each pixel would be nearly impossible and definitely not worth the effort (except maybe for experience in programming, I guess).
__________________
Reply With Quote