I have a windows 8 box with ActivePython 2.7 32-bit installed. I install PIL via:
pypm install pil
All works fine, but if i try to use 'save' functionality with 'png', like this:
import PIL.Image
PIL.Image.new( 'RGB', (100,100) ).save( 'file.png' )
I got an error:
File "C:\Users\Eye.DEV\AppData\Roaming\Python\Python27\site-packages\PIL\Image.py", line 401, in _getencoder
raise IOError("encoder %s not available" % encoder_name)
IOError: encoder zip not available
This is strange, since import zlib
works fine, so my ActivePython installation apparently has zip
suport. Is it some bug and PIL
is not intended to be used on Windows / installed as binary, or i'm doing something wrong?
Please note, that this behaviour is Windows-specific. All works fine under buntu/Debian or OSX.