【问题标题】:Resize animated GIF with PythonMagick使用 PythonMagick 调整动画 GIF 的大小
【发布时间】:2011-08-09 09:24:14
【问题描述】:

我正在使用 PythonMagick 0.9.3(无法切换到 PIL)来调整图像大小。它适用于除动画 GIF 之外的所有内容。

这是我目前调整图像大小的方式:

orig_image = Image('path/to/animated.gif')
orig_image.resize('..resize string..')
orig_image.write('path/to/thumbnail.gif')

目前它只调整序列的第一张图像的大小,因此之后图像不再动画。 有人可以解决我的问题吗?

谢谢!

【问题讨论】:

    标签: python imagemagick thumbnails animated-gif


    【解决方案1】:

    我想你必须迭代构成动画的所有图像,调整它们的大小,然后像 this (with example for PHP language) 那样重新组合动画

    【讨论】:

      猜你喜欢
      • 2011-08-31
      • 1970-01-01
      • 2018-04-18
      • 2012-09-07
      • 2011-06-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-11-01
      相关资源
      最近更新 更多