我使用pythonmagick0.9.3(不能切换到PIL)来调整图像大小。它对任何东西都很好,除了动画gif。在
这是我目前调整图像大小的方法:
orig_image = Image('path/to/animated.gif')
orig_image.resize('..resize string..')
orig_image.write('path/to/thumbnail.gif')
目前,它只调整序列的第一个图像的大小,因此图像在之后不再被设置动画。
有人能解决我的问题吗?在
谢谢你!在
Tags:
我想您必须迭代所有组成动画的图像,调整它们的大小,然后在like this (with example for PHP language)之后重新组合动画
相关问题 更多 >
编程相关推荐