-
Hello! To uniquely identify an image I'm calculating the image histogram with Pillow and then hash it with sha1 The problem is that with Pillow >= 9.0.0 using libjpeg-turbo the resulting images are slightly different and in consequence the histogram of my images is different from the past calculated histograms. Any ideas how to solve the problem? Thank You |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi. Pillow only uses libjpeg-turbo if you are installing from the wheel, or if libjpeg-turbo is installed. To install Pillow with pip, but without using the wheel, you can run python3 -m pip install --upgrade Pillow --no-binary :all: You will likely have to install various dependencies, because you are now building from source. See https://pillow.readthedocs.io/en/stable/installation.html#building-from-source for more information. |
Beta Was this translation helpful? Give feedback.
-
thank you for your quick reply! I appreciated! So this is what I did:
Ok, it works but it's a bit tricky.. Anyway, any other ideas to uniquely fingerprint an image? |
Beta Was this translation helpful? Give feedback.
Hi. Pillow only uses libjpeg-turbo if you are installing from the wheel, or if libjpeg-turbo is installed.
To install Pillow with pip, but without using the wheel, you can run
You will likely have to install various dependencies, because you are now building from source. See https://pillow.readthedocs.io/en/stable/installation.html#building-from-source for more information.