If you are using django and getting jpg adapter error on image upload or while running the app on rendering the jpeg image, in that case follow below instructions. The error is most likely because of installation of jpeg in environment.
You have to install support for JPEG, for example in mac use homebrew for installation and follow below instructions -
1. Uninstall PIL
sudo pip uninstall PIL
2. Install JPEG
brew install jpeg
3. Install PIL again
sudo pip install PIL
for ubuntu users use below command -
sudo apt-get install libjpeg62-dev
No comments:
Post a Comment