http://www.perlmonks.org?node_id=907385


in reply to Can i Compare two images in perl ?

Compress the images three times: image1.zip, image2.zip both.zip.

Then calculate similarity = (size(image1.zip) + size(image2.zip)) / size(both.zip).

That value will approach 2.0 as the source bitmaps become more similar. No image processing required!