Create animated gifs with GIMP

Today I want to explain how easy it is to create an animated gif with GIMP, the open source software for editing images and a good replacement for Photoshop in Linux and not. Alternatively you can use an application on Ubuntu, e here you can find the guide!



Installation

First we install GIMP giving as a terminal

sudo apt-get install gimp

if our distribution is based on Ubuntu or Debian. For other Unix systems, Mac or Windows, here find the various downloads or strings to install from the terminal.


Frame

To create your animation, you will need to have a certain number of images, the frames. Here I will explain how to get frames from a video.

Windows: in a previous article I explained how to create the boot animation for Android, so you can find the software and the guide here.

Other systems: area download for free

Ubuntu: for Ubuntu, you can use Kdenlive, a video editor. Let's install it with this simple terminal command

sudo add-apt-repository ppa: sunab / kdenlive-release && sudo apt-get update && sudo apt-get install kdenlive

At startup, we import the video by selecting apri in the upper left corner, after we move on the images that interest us, through the player on the right, and export the frames by clicking the gear icon and selecting Extract frame.

Kdenlive

We repeat for all the frames that interest us and save them all in the same folder to simplify the operation. Without this we can move on to the actual creation of the animated image.


Animated Gif

We start GIMP and make sure that the window Layers is active. If it is not, activate it with the key combination Control+L and we copy all the images we have created, in the desired order, in the editor. Let's check in the section Layers that the order is correct (from bottom to top = from the first to the last) and from the menu Filters -Animation we click Optimize (for Gif). Doing so will open a new tab with the new images optimized for the creation of the gif and with a delay of 100ms for each image. Still from Filters -> Animation, let's select now execution: a new window will open where we will see the preview of our gif. We choose the speed and frames per second (fps) to get an idea and when we get the desired result, we save our Gif.
Da Fillet select Export, we choose the type of extension GIF image (* .gif) from the drop-down menu and give a name to our image, also modifying the extension (which by default should be .png) in .gif. We click Export and in the new window we check As an animation. Then choose perennial cycle if we want our image at the end of the animation to start over, to infinity. We set the delay between one image and another and check it off Use the delay entered above for all the frames to apply this delay to all images. Finally we decide if the images should overlap or if the next one will replace the previous one, so from the drop-down menu we choose one frame per level to get the latter option and check Use the provisions above for all the paintings.
After that click Export and check the speed of your gif, to change speed just repeat the export procedure, modifying only the value of the delay.

gimp-export-gif

Receive the latest posts by email

Enter the email and choose the inscriptions on the new page

InTheBit.it
Added devices
  • Compare Smartphone (0)
  • Compare Notebook (0)
Compare