python 3.x - 'module' does not support the buffer interface -
from pil import image, imagesequence import glob images2gif import writegif fn0 = glob.glob('*.jpg') im = [image.open(filename) filename in fn0] writegif('1.gif', im, duration=0.1 ) #file "images2gif.py" line 578 #gifwriter.writegiftofile(fp,images,duration,loops,xy,dispose) #file "images2gif.py" line 439 #fp.write(globalpalette) #error: 'module' not back upwards buffer interface
i used module images2gif on winpython, , i've installed imageio before it. don't know error comes from. using latest images2gif module : https://code.google.com/p/visvis/source/browse/vvmovie/images2gif.py
thanks!
writegif wants open, writable file (or acts it), rather string representing name of file.
maybe work better?
with open('1.gif') fp: writegif(fp, im, duration=0.1 )
python-3.x python-imaging-library
No comments:
Post a Comment