Convert a series of pictures into an animated gif is real easy. First you want to collect all the pictures together and order them by name in the order you want them to appear.
Then let’s install some software.
$ sudo apt-get install imagemagick
Now we need to make sure all the pictures are the
$ mogrify -resize 640x480 *.png
The let's make the gif. You maybe also able to do
this on other platforms, but I have not tried it
$ convert -delay 100 *.png preg.gif
View your new gif. Great for web pages and
Imagemagick for other platforms: