用PythonMagi调整动画GIF的大小

2024-05-13 03:34:44 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用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: topath方法图像imagestringpil动画