Commit 14fb5f66 by BellCodeEditor

auto save

parent b2b4d19b
Showing with 1 additions and 7 deletions
from tkinter import filedialog,Tk
from PIL import Image,ImageSequence
img = Image.open('dive.gif')
num = 0
for i in ImageSequence.Iterator(img):
i.save('img/'+str(num)+'.png')
num+=1
from PIL import Image
root = Tk()
root.withdraw()
path = filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png ','.png')],initialdir='./')
......@@ -15,4 +10,3 @@ for i in path:
list1.insert(0,img)
list1[0].save("sst.gif", save_all=True,append_images=list1[1:])
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