Commit 837b87d1 by BellCodeEditor

save project

parent 6f3517e6
Showing with 63 additions and 0 deletions
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
from tkinter import filedialog,Tk
path = filedialog.askopenfilenames(title='选择图片文件',
filetypes=[('All Files','*')],
initialdir="./")
print(path)
\ No newline at end of file
from PIL import Image,ImageSequence
img = Image.open("01.gif")
num=0
for i in ImageSequence.Iterator(img):
i.save(r"./img"+str(num)+".png")
num += 1
\ No newline at end of file
from tkinter import filedialog,Tk
from PIL import Image
rt=Tk()
rt.withdraw()
ph=filedialog.askopenfilenames(title='选择图片文件',
filetypes=[('png','.png')],initialdir='./')
il=[]
for i in ph:
im=Image.open(i)
il.insert(0,im)
il[0].save("001.gif", save_all=True,append_images=il[1:])
This diff is collapsed. Click to expand it.
from tkinter import filedialog, Tk
from PIL import Image
rt=Tk()
rt.withdraw()
path=filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png','.png')],initialdir='./')
sequence=[]
for i in path:
img=Image.open(i)
sequence.append(0,img)
sequence[0].save("bot.gif",save_all=True,
append_images=sequence[1:])
\ No newline at end of file
This diff is collapsed. Click to expand it.
from tkinter import filedialog,Tk
from PIL import Image
root = Tk()
root.withdraw()
path = filedialog.askopenfilenames(title = '选择图片文件',
filetypes = [('ALL Files', '*')],
initialdir = "./")
img_list = []
for i in path:
img = image.open(1)
img_list.append(0,img)
img_list[0].save("bot.gif",save_all = True,
append_images = img_list[1:])
\ No newline at end of file
This diff is collapsed. Click to expand it.
img/img1.png

210 Bytes

img/img2.png

210 Bytes

img/img3.png

210 Bytes

img/img4.png

210 Bytes

img/img70.png

227 Bytes

img/img72.png

230 Bytes

img/img74.png

241 Bytes

from PIL import Image,ImageSequence
im=Image.open('dive.gif')
num=0
for i in ImageSequence.Iterator(im):
i.save('turn/'+str(num)+'.png')
num+=1
\ No newline at end of file
turn/0.png

48.4 KB

turn/1.png

47.9 KB

turn/10.png

52.1 KB

turn/11.png

52.6 KB

turn/12.png

51.8 KB

turn/13.png

51.4 KB

turn/14.png

50.2 KB

turn/15.png

50.9 KB

turn/16.png

50.2 KB

turn/17.png

50.2 KB

turn/18.png

50.1 KB

turn/19.png

50.1 KB

turn/2.png

47.7 KB

This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
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