Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Gif Creator Laravel Laravel Package

plutuss/gif-creator-laravel

View on GitHub
Deep Wiki
Context7

GifCreator Laravel Wrapper

A Laravel wrapper for sybio/gif-creator, providing a convenient way to create GIF animations using the GifCreator facade and storage. This package does not restrict the standard approach from sybio/gif-creator.

Installation

Install the package via Composer:

composer require plutuss/gif-creator-laravel

After installation, if you are using Laravel < 5.5, add the service provider and facade to config/app.php:

'providers' => [
    \Plutuss\Gif\Providers\GifCreatorServiceProvider::class,
],

'aliases' => [
    'GifCreator' =>  \Plutuss\Gif\Facades\GifCreator::class,
],

Usage

Creating a GIF

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);

Methods

  • storage(string $disk = null) – Uses files from storage, allowing a specific disk name
  • durations(array $durations) – Sets frame durations
  • frames(array $files, string $path = '') – Loads frames from the specified path (pass an array of file names and a path if different)
  • loop(int $count = 0) – Sets the loop count (default is infinite)
  • makeGif() – Creates a GIF animation
  • getGif() – Retrieves binary GIF data
  • show() – Displays GIF in the browser
  • save(string $path, string $filename) – Saves the GIF to the server at the specified path

License

This package is licensed under the MIT License.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
daikazu/eloquent-salesforce-objects
unseen-codes/chat
romalytar/yammi-jobs-monitoring-laravel
kisame76/filament-db-table-state
nqxcode/laravel-lucene-search
dpfx/laravel-livewire-wizards
workos/workos-php-laravel
sofa/laravel-global-scope
nawasara/auth-primitives
adhocrat-io/arkhe-main
make-dev/orca-harpoon
itsemon245/lamet
baks-dev/dashboard
amoifr/pickle-panther-bundle
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle