Skip to content Skip to sidebar Skip to footer

Got Oserror When Use Pillow To Deal With My Jpg Image

I'm post a jpg picture to my website (build on django), but I got 'OSError at url XXXX/XXX broken data stream when reading image file' when I use pillow to deal with it it happens

Solution 1:

Try installing libjpeg and then reinstall pillow:

sudo apt-get install libjpeg8 libjpeg8-dev

pip install --force-reinstall Pillow

If the version is unavailable try the following to find what versions are available:

apt-cache search libjpeg

Post a Comment for "Got Oserror When Use Pillow To Deal With My Jpg Image"