from PIL import Image
im=Image.open("hhh.gif")
try:
im.save('picframe{:02d}.png'.format(im.tell()))
while True:
im.seek(im.tell()+1)
im.save('picframe{:02d}.png'.format(im.tell()))
except:
print("end")
.
python PIL 将GIF图片每帧保存下来
最新推荐文章于 2024-05-22 18:01:04 发布