Python 3.5.2图像2gif typ

2024-04-25 16:34:58 发布

您现在位置:Python中文网/ 问答频道 /正文

在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}$

编辑:更新了完整的错误消息


Tags: theinfromimageimport错误filesgif

热门问题