I have some url of images in my database, and i want to compare them with the images on my local without download them.
i read this example and this question and i tried this
adr = "url_of_image"
file = cStringIO.StringIO(urllib.urlopen(adr).read())
img = Image.open(file)
img = str(img)
print type(img)
image_file = open('adresse_of_image_in_local').read()
print type(image_file)
if ( img == image_file):
print "the pictures of the same"
else :
print "they are not the same"
i test this code for the same image, but i got this
<type 'str'>
<type 'str'>
they are not the same
My question is how can i compare an image on local with an image on web without saving?