I am getting an error where reading the same lena.jpg file on two different computers yeilds two different checksums.
Even weirder is that when I run md5sum lena.jpg I get the same md5 sum on both machines, so the files are identical.
Furthermore, when I load a png instead of a jpeg the numbers seem to match up. This leads me to believe there is a disconnect between Pillow on the two different machines, or at least the library they are using to read jpeg files.
Is there any way to check which version of libjpeg is being used by Pillow (from within Python preferably)?
Both of the computers are Ubuntu, although one is 12.04, and one is 14.04 (I also tested it on a mac and got the same values as the 14.04 box)
First, locate the PIL egg that your Python installation is using:
Then locate
_imaging.so
in that directory and useldd
(Linux) orotool -L
(OS X) to find out what version oflibjpeg
it has been linked against:Linux
Mac OS X
Try this:
If you are using virtualenv, try to find PIL on your VIRTUALENV_HOME, usually it is under
If you are using ubuntu packages, use dpkg to find the location of your pillow/PIL install.