Scripts:
from PIL import Image, ImageOps
img = Image.open('1.JPG')
thumb = ImageOps.fit(img, (200,200) , Image.ANTIALIAS, (0.5, 0.5))
raise this IOError:
Traceback (most recent call last):
(...)
File "/Library/Python/2.7/site-packages/PIL/Image.py", line 385, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
How do I get jpeg support for my PIL? This problem seems to be well known, but existing threads do not solve it for me. I am using brew and pip for my python packages and have already tried the following:
brew install jpeg
causes Error: jpeg-8d already installedbrew install libjpeg causes Error: jpeg-8d already installedsudo pip install Pillow - the installation works, but does not change anything
How do I get jpeg support for my PIL installation? Any ideas?
source
share