I am using easy-thumbnails to generate thumbnails for images uploaded. In the dev environment, thumbnails are properly generated and uploaded to S3 for png and jpg files. However, in production, only thumbnails for png images are generated, not jpg. I cant figure out why - please help?
Setup
Update
Following Mark Galloway's excellent advice, I installed the requirements advised in the Pillow docs:
sudo apt-get install libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
then reinstalled pillow with:
sudo pip install -I pillow
And finally for good measure restarted gunicorn.
You need to install an additional library for pillow JPEG support on ubuntu. Maybe you missed it?
sudo apt-get install libjpeg-dev
pip install -I pillow