A Simple Way to Modify Cool Animated GIFs in 15 Seconds with ImageMagick
Cool animated GIFs with ImageMagick

A Simple Way to Modify Cool Animated GIFs in 15 Seconds with ImageMagick

On this page, we maintain a shortlist with powerful Linux CLI commands for GIFs and video modifications with ImageMagick and other tools.

ImageMagick

Create GIF animation from pictures

$ convert -loop 0 -delay 35 -quality 100% -compress None *.bmp movie.mpeg
$ convert -loop 0 *.png movie.gif

Convert GIF to grayscale

$ convert input.gif -modulate 100,0,100 output.gif

Rescale a GIF and minimize file size

$ convert -delay 2 -loop 0 -scale 800x400 input.gif output.gif

Change the speed of a GIM animation

$ convert -delay 2 -loop 0 input.gif output.gif

Convert GIF to MP4

$ ffmpeg -i input.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" output.mp4

GIFSICLE

Merge multiple GIFs to one

$ gifsicle movie1.gif movie2.gif > movie_merged.gif
Please follow and like us: