Download the PHP package syntaxevolution/gifcreator without Composer
On this page you can find all versions of the php package syntaxevolution/gifcreator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download syntaxevolution/gifcreator
More information about syntaxevolution/gifcreator
Files in syntaxevolution/gifcreator
Package gifcreator
Short Description PHP class that creates animated GIF from multiple images
License MIT
Homepage https://github.com/SyntaxEvolution/GifCreator
Informations about the package gifcreator
================================
GifCreator
================================
GifCreator is a PHP class to create animated GIF from multiple images
For what ?
This class helps you to create an animated GIF image: give multiple images and their duration and that's it !
Usage
1 - Creation:
The 3rd parameter of create() method allows you to choose the number of loop of your animated gif before it stops. In the previous example, I chose 5 loops. Set 0 (zero) to get an infinite loop.
2 - Get the result:
You can now get the animated GIF binary:
Then you can show it in the navigator:
Or save it in a folder as a GIF:
Behavior
- The transparency is based on the first given frame. It will be saved only if you give multiple frames with same transparent background.
- The dimensions of the generated GIF are based on the first frame. If you need to resize your frames to get the same dimension, you can use this class: https://github.com/Sybio/ImageWorkshop
About
The class reuses some part of code of "GIFEncoder.class.php" by László Zsidi (thanks to him).