Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Using php to compare two images


The_Hat - 10:11 pm on May 15, 2010 (gmt 0)


Matthew1980, thanks for the reply: It looks like there is a gd module called cmp_image but that would mean I would have to read two images and compare them instead of reading one image and comparing it to data stored in the db, the images right now total around 40,000, so I was thinking that running the external gd lib once and going to the db would reap me a fairly sizable time savings vs. running the gd twice per image.. Let alone the fact that I was planning on totally dropping the supplied full size photo in favor of smaller photos that I can display easier within my design. Not sure the cmp_image module is smart enough to equate a resized version of a photo to it's full size version..

Looking for a way to take a finger print of an image, that I can store in my db before doing away with that version, then when I recheck photos I can read the image and check it against the fingerprint I have of the previous image that came through with that name and decide...


Thread source:: http://www.webmasterworld.com/php/4132966.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com