Commit 32b858fd by BellCodeEditor

auto save

parent 8563d57f
Showing with 8 additions and 0 deletions
from PIL import Image,ImageSequence
img = Image.open("xbdts.gif")
num = 0
for i in ImageSequence.Iterator(img):
i.save('C:\\Users\\bellcode\\Desktop\\新建文件夹 (2)',"img/"+str(num)+".png") # 这里把分解到的每一张静态图保存到当前目录下
num += 1
This diff is collapsed. Click to expand it.
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