Commit 1e1ae7d5 by BellCodeEditor

save project

parent 21bc7b69
Showing with 8 additions and 2 deletions
...@@ -8,4 +8,10 @@ il=[] ...@@ -8,4 +8,10 @@ il=[]
for i in ph: for i in ph:
im=Image.open(i) im=Image.open(i)
il.append(im) il.append(im)
il[0].save("Robot.gif", save_all=True,append_images=il[1:]) il[0].save("Robot.gif", save_all=True,append_images=il[1:])
\ No newline at end of file from PTL import Image,ImageSequence
ing=Image.open("dive.gif")
num=0
for i in ImageSequence.Iterator(img):
i.save(r"./img"+str(num)+".png")
num+=1
\ No newline at end of file
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