Commit 6381734e by BellCodeEditor

save project

parent e89ca754
......@@ -7,6 +7,8 @@ path = filedialog.askopenfilenames(title='选择图片文件',filetypes=[('png '
img_list = []
for i in path:
img = Image.open(i)
img_list.insert(0,img)
img_list[0].save("bot.gif", save_all=True,append_images=img_list[1:])
img_list.append(img)
img_list[0].save("bot.gif", save_all=True,
append_images=img_list[1:])
print(img_list)
from PIL import Image,ImageSequence
img = Image.open("wert.gif")
num = 0
for i in ImageSequence.Iterator(img):
i.save(r"./img"+str(num)+".png")
num +=1
\ No newline at end of file
......@@ -12,7 +12,7 @@ for i in path:
img_list.insert(0,img)
img_list[0].save("bot.gif",save_all = True,
img_list[0].save("dive.gif",save_all = True,
append_images = img_list[1:])
print(img_list)
\ No newline at end of file

48.4 KB | W: | H:

18.1 KB | W: | H:

img0.png
img0.png
img0.png
img0.png
  • 2-up
  • Swipe
  • Onion skin

47.9 KB | W: | H:

18.6 KB | W: | H:

img1.png
img1.png
img1.png
img1.png
  • 2-up
  • Swipe
  • Onion skin

52.1 KB | W: | H:

19.5 KB | W: | H:

img10.png
img10.png
img10.png
img10.png
  • 2-up
  • Swipe
  • Onion skin

52.6 KB | W: | H:

19.2 KB | W: | H:

img11.png
img11.png
img11.png
img11.png
  • 2-up
  • Swipe
  • Onion skin

51.8 KB | W: | H:

19.3 KB | W: | H:

img12.png
img12.png
img12.png
img12.png
  • 2-up
  • Swipe
  • Onion skin

51.4 KB | W: | H:

19.3 KB | W: | H:

img13.png
img13.png
img13.png
img13.png
  • 2-up
  • Swipe
  • Onion skin

50.2 KB | W: | H:

19.2 KB | W: | H:

img14.png
img14.png
img14.png
img14.png
  • 2-up
  • Swipe
  • Onion skin

50.9 KB | W: | H:

19.3 KB | W: | H:

img15.png
img15.png
img15.png
img15.png
  • 2-up
  • Swipe
  • Onion skin

50.2 KB | W: | H:

19.4 KB | W: | H:

img16.png
img16.png
img16.png
img16.png
  • 2-up
  • Swipe
  • Onion skin

50.2 KB | W: | H:

19.4 KB | W: | H:

img17.png
img17.png
img17.png
img17.png
  • 2-up
  • Swipe
  • Onion skin

50.1 KB | W: | H:

19.4 KB | W: | H:

img18.png
img18.png
img18.png
img18.png
  • 2-up
  • Swipe
  • Onion skin

50.1 KB | W: | H:

19.5 KB | W: | H:

img19.png
img19.png
img19.png
img19.png
  • 2-up
  • Swipe
  • Onion skin

47.7 KB | W: | H:

18.7 KB | W: | H:

img2.png
img2.png
img2.png
img2.png
  • 2-up
  • Swipe
  • Onion skin

49.8 KB | W: | H:

18.7 KB | W: | H:

img20.png
img20.png
img20.png
img20.png
  • 2-up
  • Swipe
  • Onion skin

50 KB | W: | H:

18.8 KB | W: | H:

img21.png
img21.png
img21.png
img21.png
  • 2-up
  • Swipe
  • Onion skin

50.2 KB | W: | H:

18.9 KB | W: | H:

img22.png
img22.png
img22.png
img22.png
  • 2-up
  • Swipe
  • Onion skin

48.3 KB | W: | H:

20.6 KB | W: | H:

img3.png
img3.png
img3.png
img3.png
  • 2-up
  • Swipe
  • Onion skin

48.2 KB | W: | H:

21.6 KB | W: | H:

img4.png
img4.png
img4.png
img4.png
  • 2-up
  • Swipe
  • Onion skin

49.1 KB | W: | H:

21.8 KB | W: | H:

img5.png
img5.png
img5.png
img5.png
  • 2-up
  • Swipe
  • Onion skin

50.1 KB | W: | H:

22.2 KB | W: | H:

img6.png
img6.png
img6.png
img6.png
  • 2-up
  • Swipe
  • Onion skin

52 KB | W: | H:

21.1 KB | W: | H:

img7.png
img7.png
img7.png
img7.png
  • 2-up
  • Swipe
  • Onion skin

51.7 KB | W: | H:

20.2 KB | W: | H:

img8.png
img8.png
img8.png
img8.png
  • 2-up
  • Swipe
  • Onion skin

52.1 KB | W: | H:

20.3 KB | W: | H:

img9.png
img9.png
img9.png
img9.png
  • 2-up
  • Swipe
  • Onion skin
from PIL import Image,ImageSequence
im=Image.open('dive.gif')
im=Image.open('wert.gif')
num=0
for i in ImageSequence.Iterator(im):
i.save('turn/'+str(num)+'.png')
......
wert.gif

469 KB

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