1👍
✅
If I got your problem right the issue in
im.save('/pathto/static/media/temp/image.jpg')
Solution is:
On Ubuntu
sudo apt-get install libjpeg-dev
And then
pip install -I pillow
It should help
Source:stackexchange.com