I'm getting different hashes for the same .png file. The files have been created using imagemagick convert v6.9.1-10.
File creation:
$ convert test.pdf test_one.png
$ convert test.pdf test_two.png
Python:
import hashlib
h1 = hashlib.md5()
h1.update(open('test_one.png', 'r').read())
first_hash = h1.hexdigest()
h2 = hashlib.md5()
h2.update(open('test_two.png', 'r').read())
second_hash = h2.hexdigest()
I would expect first_hash
to be the same as second_hash
however that is not the case.
Why are the hashes not the same?