Create animated gif with gifsicle

The gifside program helps to create animated gif or animated remove the frame or images that compose gif ..

So if for example we have a series of images or frames that have numbered imag0.gif imag1.gif ………… imag9.gif imag10.gif

If we want to create animated what we do on command line and will always have to be of course in the directory where you are a gif images. create a gif .

gifsicle –loop –delay 10 imag0.gif imag1.gif …….imag10.gif  > anima.gif

create a gif anima.gif the images that contain it.

-loop Makes it the gif is repeated indefinitely.

-delay 10 causes a delay of 10 if we lowered it will be faster and if we go will be slower (this issue)

This animation will move very quickly if you do not specify a delay, the display of web pages frames run as fast as you can can do it slower creating pauses 0.5 seconds between images:

 gifsicle –loop –delay 50 imag0.gif imag1.gif …….imag10.gif  > anima.gif

# gifsicle –explode anim.gif

 
By this we do is to get us all frame or picture that contains animated gif gif .. in the directory we will imag0.gif imag1.gif and thus etc ..gisicle Other examples would be:
gifsicle anim.gif ‘#0′ > primerframe.gif
What this does is to extract the first frame of an animated gif.
gifsicle anim.gif –replace ‘0#’ new.gif

replaced in the lively anim.gif the first frame or image with a new image gif.

gifsicle -b -color = 4 anim.gif changes the color of animated gif . There are up to 6 colors.

If we want the sequence to run only 3 times in a row we can use -loopcount:

% gifsicle -d 50 –loop=3 a.gif b.gif c.gif d.gif > anim.gif

Another way to create an animated gif is trough the ffmpeg command, you can create an animated from a video we do with our camera gif, also can create your personalized videos to send them a postcard or anything else to our friends.

The way to create it in the example with this video is only 194K

http://www.mediafire.com/watch/qguxbrbawgjd5or/1.mp4

And once we dropped open the terminal and run in the same directory where this file is the command.

ffmpeg -i 1.mp4 -pix_fmt rgb24 1 gif

With this we have a gif output will be as follows:

 

 

 

 

 

 

Well let’s create an animated from a still image and using the command nconvert can see your information and download it in gif:

*************  AQUI PONER ENLACE A PAGINA NCONVERT EN INGLES**************

From the image as we see below:

 

 

 

 

 

 

 

 

 

 

 

 

Create the following script with a text editor, based on the nconvert command.
#!/bin/sh
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 1 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 2 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 3 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 4 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 5 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 6 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 7 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 8 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 9 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 10 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 11 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 12 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 13 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 14 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 15 1.jpg
  nconvert -out gif -o 1.gif -colors 256 -resize 200 300 -solarize 16 1.jpg
  gifsicle --loop --delay 10 1.gif 1_1.gif 1_2.gif 1_3.gif 1_4.gif 1_5.gif 1_6.gif 1_7.gif 1_8.gif 1_9.gif 1_10.gif 1_11.gif 1_12.gif 1_13.gif 1_14.gif 1_15.gif 1_16.gif -o anima.gif

If we name the script as make_gif.sh, and execute it in the directory where s is the only image file 1.jpg, we created a lot of pictures with solarize filter, which ultimately are packaged within a anima.gif file called.

If you run this file seems the picture below.

 

 

 

 

 

 

 

Well there are lots of options within the command gifsicle but this I think are most important to create an animated gif and to remove images or frames of one.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s