ImageMagick 旋转动画 gif 故障 [英] ImageMagick rotate animated gif glitches
本文介绍了ImageMagick 旋转动画 gif 故障的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 ImageMagick 旋转 gif 动画.简单地说:
I'm using ImageMagick to rotate animated gifs. Simply:
convert 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屋!
查看全文