赞
踩
from PIL import Image, ImageSequence
im = Image.open(r'./src.gif') #原gif动图
sequence = []
for f in ImageSequence.Iterator(im):
sequence.append(f.copy())
sequence.reverse()
sequence[0].save(r'./target.gif',save_all = True, append_images=sequence[1:])
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。