在python3.5.2上使用images2gif时遇到错误。在
我已经经历了一些问题,我找到了答案,但没有看到这个问题记录在任何地方。在
代码:
from PIL import Image
from images2gif import writeGif
import urllib.request
image_files=["list of png image files in the same directory as the script"]
images = [Image.open(fn) for fn in image_files]
gif_file = "test-gif.GIF"
writeGif(gif_file, images, duration=44)
错误:
^{pr2}$编辑:更新了完整的错误消息
显示错误消息,因为images2gif是为python 2.x而不是3.x制作的
相关问题 更多 >
编程相关推荐