1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GIFアニメーションの先頭フレームと最終フレームだけの待ち時間を変更する方法

Last updated at Posted at 2016-05-22

ソフトウェアの説明用動画をGIFアニメーション化してREADMEに貼り付けるような場合に、ループして動き続けていると目障りに感じることはないでしょうか。先頭フレームと最終フレームで一定の停止時間を設けることで多少見やすくすることができます。

これにはImageMagickを使います。下記は先頭フレーム表示直後の待ち時間を1秒、最終フレーム表示直後の待ち時間を3秒に変更する例です。

$ convert in.gif \( -clone 0 -set delay 100 \) -swap 0 +delete \( +clone -set delay 300 \) +swap +delete out.gif

ImageMagickマジ魔法すぎる…

元ネタ

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?