Commit 044a641c by BellCodeEditor

auto save

parent e29c4f72
Showing with 0 additions and 9 deletions
"""
from tkinter import filedialog,Tk
from PIL import Image
......@@ -15,11 +14,3 @@ il[0].save("Robot.gif", save_all=True,append_images=il[1:])
#s = Tk()
#s.withdraw()
#ph = filedialog.askopenfilenames(title='选择图片文件',filetypes[('png','.png')],initialdir='./')
"""
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
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