Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Articles Tagged ‘image’

Compare images with web scripts

Friday, March 1st, 2013 by Servage
Are you working with images in your web application? In that case you may want to be able to compare images, to detect similar images, or even identical duplicates. There are multiple ways to go about this, and solutions range from very simple to extremely complex - depending on your needs. Simple file content hash comparison You could simply compare the file content hash of two images. If the has is the same, then the file is the same. This solution will positively identify duplicate files, but not take any other things into consideration. I.e. the same image in a cropped, resized, slightly recolored or just recompressed format, will not be detected ...