1. Go to this page and download the library: Download plutuss/gif-creator-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use Plutuss\Gif\Facades\GifCreator;
$gif = GifCreator::storage('public') // You can specify a disk name
->durations([40, 80, 40, 20, 10])
->frames(['1.jpg', '2.jpg', '3.jpg'], 'images/') // Pass an array of file names and a path if different
->loop()
->makeGif();
// Retrieve binary GIF data
$gifData = $gif->getGif();
// Display GIF in the browser
$gif->show();
// Save GIF to the server with a specified path and filename
$gif->save('gif/', 'animated.gif');
// or
// Save GIF to storage
Storage::disk('public')->put('animated.gif', $gifData);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.