【问题标题】:Speed up existing Gif with Imageio Python使用 Imageio Python 加速现有 Gif
【发布时间】:2017-08-26 21:39:25
【问题描述】:

我希望加快我在 python 中使用Imageio 制作的 gif。我没有用来制作 gif 的图像,但我有 gif。

我在imageio 文档或在线任何地方都找不到合适的来源。你能给我一些建议吗?

【问题讨论】:

    标签: python gif python-imageio


    【解决方案1】:

    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)
    

    更多详情请参阅imageio.help("GIF")

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-04-01
      • 1970-01-01
      • 2017-01-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多