Create Gif animated. Extension

Hello friends,

with this extension we can create an animated GIF by adding static images.


  • Start: Output file name. Example: /mnt/sdcard/my_gif.gif

  • SetRepeat: Sets the number of times the set of GIF frames should be played. Default is 1; 0 means play indefinitely. Must be invoked before the first image is added.

  • AddFrame: Adds next GIF frame. The frame is not written immediately, but is actually deferred until the next frame is received so that timing data can be inserted. Invoking ‘Finish’ flushes all frames. Example: /mnt/sdcard/animales/gato.png

  • SetDelay: Sets the delay time between each frame, or changes it for subsequent frames, applies to last frame added.

  • Finish: Flushes any pending data and closes output file.

  • CopyAssets: Copy all files .png, .jpg and .gif from asset to dir. Example: /mnt/sdcard/my_directory

  • I have not used the block: SetTransparent.

This extension is an adaptation of:

p193C_crear_gif_animado.aia (32.5 KB)

You can get com.KIO4_GifEncoder.aix file from:

More extensions:

Juan A. Villalpando.



Here is another example usage:

Using the Component 2 Image extension to collect a set of canvas images, then convert these images to a gif using Juan’s Create Gif extension


CanvasGiffer.aia (42.6 KB)


1 Like

Interesting project. Is it possible to “convertToImage” and immediately AddFrame to gif?

Well it works :slight_smile:

Doing things in sequence,

  • convert component to image
  • after image created add image to frame
  • go again

muy buena!!

Thanks! I was about to make a post about gifs not animating!

you can convert all these gif to jpgs and upload them and make a timer for them and it will work too instead of using extensions.

Yes, that is an old method (2013). Here Scott Ferguson again:!topic/app-inventor-developers-library/nib7B1J0mhc