Commit 8dda2f6a by BellCodeEditor

save project

parent 9da2faa6
Showing with 11 additions and 4 deletions
......@@ -7,6 +7,5 @@ path = filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png '
img_list = []
for i in path:
img = Image.open(i)
img_list.insert(0,img)
img_list.append(img)
img_list[0].save("bot.gif", save_all=True,append_images=img_list[1:])
print(img_list)
from PIL import Image,ImageSequence
a = open("poi.gif")
num = 0
for i in ImageSequence.Iterator(a):
i.save(r"./a" +str(num)+ ".png")
num += 1
\ No newline at end of file
......@@ -14,4 +14,4 @@ for i in path:
img_list[0].save("bot.gif",save_all = True,
append_images = img_list[1:])
print(img_list)
\ No newline at end of file
print(img_list)
poi.gif

21.7 KB

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment