5つのGIFモンタージュを一緒に組み合わせる

5つのGIFモンタージュを一緒に組み合わせる

フレーム数とフレームレートの両方が同じ5つのGIFがあります。各フレームが静的画像の一般的なモンタージュに似ており、gifの次のフレームになるgifでこれらのモンタージュを組み合わせることはできますか?また、最初の行の最初の2つのgif、スペース、最後の3つのgifが必要です。

ベストアンサー1

私が理解したことが正しいなら、5つのgifが並列に再生されるように見えるgifが欲しいでしょうか?

イメージマジックこの操作(およびそれ以上)を実行できます。コードを 1 つ減らすこともできますが、いくつかの手順を実行するだけです。あなたのgif名がanim1.gif...anim5.gifで、それぞれ100×100ピクセルであるとしましょう。

#Combine anim1.gif and anim2.gif (first row)
convert anim1.gif -repage 200x100 -coalesce null: \( anim2.gif -coalesce \) -geometry +100+0 -layers Composite anim1+2.gif
#Combine anim3.gif and anim4.gif (1st part of last row)
convert anim3.gif -repage 200x100 -coalesce null: \( anim4.gif -coalesce \) -geometry +100+0 -layers Composite anim3+4.gif
#Combine anim3+4.gif and anim5.gif (last row)
convert anim3+4.gif -repage 300x100 -coalesce null: \( anim5.gif -coalesce \) -geometry +200+0 -layers Composite anim3+4+5.gif
#Combine all, leaving one in the middle empty
convert anim1+2.gif -repage 300x300 -coalesce null: \( anim3+4+5.gif -coalesce \) -geometry +0+200 -layers Composite anim_all.gif

技術がより詳細に説明されている。ここ(「階層化された組み合わせ」)

最終結果(imagemagick Webページのアニメーション例を含む)は次のとおりです。 アニメgif

おすすめ記事