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:
Juan A. Villalpando.