Solved by building Pillow from source with jpeglib-8 installed. This means jpegs loaded with the same decoder match.
I am trying to deploy a model which uses the pillow (PIL) library on ubuntu (Ubuntu 20.04.2 LTS). The model was built on windows, and i have since discovered that PIL returns different arrays when reading the same image between Ubuntu and Windows.
This seems to be because of the jpeglib version (9 not 8). Does anyone know how to change this version so i can replicate the same results on a linux mahcine?
Thanks!
Change Image.core.jpeglib version in PIL on ubuntu