Issue #35 new

AttributeError: 'module' object has no attribute 'zip_decoder'

Anonymous created an issue

File "C:\Python33\lib\site-packages\pillow-2.1.0-py3.3-win32.egg\PIL\Image.py" , line 365, in _getdecoder decoder = getattr(core, decoder_name + "_decoder") AttributeError: 'module' object has no attribute 'zip_decoder'

Platform Windows XP SP3, Python 33

Due attemption to run the next script:

#!/usr/bin/env python
import sys, os, glob
from PIL import Image
for infile in glob.glob("*.PNG"):
    file, ext = os.path.splitext(infile)
    im = Image.open(infile)
    im.convert('1', palette = Image.ADAPTIVE)
    # im.convert('P', colors = 5, palette = Image.ADAPTIVE) ##The palette mode ("P") 
    ##uses a colour palette 
    ##to define the actual colour for each pixel.

    im.save(file + ".png", "PNG")

Comments (0)

  1. Log in to comment