ImageMagick旋转动画gif毛刺 [英] ImageMagick rotate animated gif glitches
本文介绍了ImageMagick旋转动画gif毛刺的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用ImageMagick来旋转GIF动画。简单地说:
I'm using ImageMagick to rotate animated gifs. Simply:
转换image.gif -rotate 32 -alpha set -background none output.gif
有没有人知道为什么输出图像会以这种方式扭曲以及如何避免这种情况?
Does anyone have a clue why output image is distorted this way and how to avoid this?
推荐答案
在没有看到原始图像的情况下,我建议提取每个图像,应用旋转,然后重新构建GIF动画。
Without seeing the original image, I would suggest extracting each image, apply rotation, and then re-build the animated gif.
使用以下gif的示例:
Example using the following gif:
convert anim_none.gif -scene 1 +adjoin tmp_%02d.gif
mogrify -rotate 32 -alpha set -background none tmp_*.gif
convert tmp_*.gif -loop 0 final.gif
并注意:随着轮换操作,质量预计会降低。
And note: quality is expected to degrade with rotation operations.
这篇关于ImageMagick旋转动画gif毛刺的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文