Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comparing images 1

Status
Not open for further replies.

MrBelfry

IS-IT--Management
Joined
May 21, 2003
Messages
289
Hi there

I have a php photo gallery which now contains thousands of photos (saved as jpgs). I was wondering if it was possible to use php to automatically check for duplicated images. NB none of the images have the same file name so i couldn't just check that but it is it possible for php to compare images at a binary level?

It is possible I'm asking the impossible but i hop someone can help!

ps I'm using win2000, apache and php 4.3.1 with whatever version of GD that is bundled with (incase that makes any difference)

MrBelfry
 
A friend suggested i could use the fopen function to compare two images but as i have over 2000 images (and growing) i figure that this will be extremely slow!

sleipnir you are a genius and i'll implement his idea. a big shiny star for you!

MrBelfry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top