Create GIF animated. Extension

Hello friends,

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

Blocks:

  • 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:
https://github.com/nbadal/android-gif-encoder/blob/master/GifEncoder.java

p193C_crear_gif_animado.aia (32.5 KB)

You can get com.KIO4_GifEncoder.aix file from:
http://kio4.com/appinventor/293C_extension_crear_gif_animado.htm

More extensions:
http://kio4.com/appinventor/index.htm#extensiones

Regards,
Juan A. Villalpando.

11 Likes

Excellent work dude.keep this work.very essential extention

super update

nice work Appreciated,

1 Like

Share your test Apk

My .aia file in first post:
p193C_crear_gif_animado.aia (32.5 KB). Build to apk.

I know but this is big process
To download,import,make apk.
And it may take about 15min
And very big problem is that every time we not have my Pc to export Apk.:yum:

Aquíestálapuertadealcalá:

Here .apk: p193C_crear_gif_animado_CopyAsset.apk (3.6 MB)

2 Likes