Creating a GIF Through the Ubuntu Terminal

GIFLooking for an easy way to make a GIF, a new social media video format?? Linux has helped you out a little bit by adding a cool feature into the terminal where you can quickly make GIF’s, which I will be showing you how to use today!

First create a GIF you will need to collect all the pictures you would like to use in the GIF and create a new folder for them which can be stored anywhere on your laptop. For the best results, all pictures will need to be the same size.

To start creating the GIF, you will need to go into the Terminal. To open Terminal: Search for it in the Dash by typing the word Terminal, and click on the Terminal icon.

Screenshot from 2014-12-22 14:14:23

 

Once in the terminal, type in the letters cd with one space after it (do not press enter or any other buttons yet).

 

Keeping the terminal window open Files and find the folder that contains the pictures you will be using. (My folder is called “MY GIF”).  Click on the folder, holding the mouse down, and drag the folder into the Terminal and release.

Screenshot from 2015-01-02 14:29:51             but

 

You should end up with the terminal’s first line looking similar to this. When it does, press Enter. (picture below shows the result after pressing enter) This step changes the directory you are searching in.

Screenshot from 2015-01-02 14:48:12

 

 

Next we will be setting the parameters up for the GIF.  Here is a template for the command you will be typing into the terminal: convert -delay (delay time) -loop (# of loops) *.(file type) output.gif   Everything in parenthesis is what is up to you to change. The delay time is the time between each picture. The # of loops is the amount of time it plays (to make it loop infinitely use 0). The file type is most of time a .jpg but could be another file type like a .png.  

For Example, the command I used to create my GIF was: convert -delay 10 -loop 0 *.jpg output.gif

Screenshot from 2015-01-02 16:41:49

 

After typing the command in, press enter. After about 20 seconds, a new line will pop up below the one you just typed.

Screenshot from 2015-01-02 16:53:31

 

To create your GIF, type in: eog output.gif and then press enter and you GIF will pop up!!

 Screenshot from 2015-01-02 17:09:03

This is the GIF I created:

output

 

Have fun creating GIF’s in the Ubuntu Terminal!

 

 

This entry was posted in Other. Bookmark the permalink.

1 Response to Creating a GIF Through the Ubuntu Terminal

  1. Pingback: Introduction to GIMP | Penn Manor High School 1:1 Resources

Comments are closed.