简体   繁体   中英

Speed up existing Gif with Imageio Python

I am looking to speed up the gif I made with Imageio in python. I do not have the images that i used to make gif but I do have the gif.

I cannot find suitable source for this in imageio documentation or anywhere online. Can you suggest me something?

This question is partially answered in Python ImageIO Gif Set Delay Between Frames .

import imageio

gif_original = 'foo.gif'
gif_speed_up = 'foo2.gif'

gif = imageio.mimread(gif_original)

imageio.mimsave(gif_speed_up, gif, fps=$FRAMESPERSECOND)

See imageio.help("GIF") for further details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM