Theo Pepler

Home | Research | Teaching | Software | Links | HOWTO's

HOWTO: CREATE ANIMATED GIF FROM IMAGES IN LINUX (COMMAND LINE)

  1. Make sure that ImageMagick is installed on your system. The following steps won't work if it isn't installed. It seems to be included by default in Ubuntu Linux installations.
  2. Save the images (jpg, png) in a single folder, and name the images so that the alphabetical order reflects the order in which they should appear in the animated GIF.
  3. In a terminal, navigate to the folder where the images are saved, and use the convert command, for example,

    convert -delay 50 Rplot*.jpg mygif_file.gif

    Note: the delay option specifies the amount of time to pause between the different frames in the GIF file.