阅读背景:

PIL处理PNG时出现问题

来源:互联网 
from PIL import ImageFile as PILImageFile

p = PILImageFile.Parser()

#Parser the data
for chunk in content.chunks():
    p.feed(chunk)    
try:
    image = p.close()
except IOError:                        
    return None
#Here the model is RGBA
if image.mode != "RGB":
    image = image.convert("RGB")
from PIL import ImageFile as PILImageFile

p = 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: