2017 © Pedro PelĂĄez
 

library php-simple-gif-transitions

Create an animated gif that displays a simple transition between one image and another image of the same size

image

digitalkreativ/php-simple-gif-transitions

Create an animated gif that displays a simple transition between one image and another image of the same size

  • Saturday, October 28, 2017
  • by digitalkreativ
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Simple transitions between 2 images of the same size.

This class will help you generate an animated gif that transitions from one image (jpg) to another image (jpg)., (*1)

Both images will have to be of the same size., (*2)

Installation

    composer require digitalkreativ/php-simple-gif-transitions

Example

<?php

try {
    $config = new \Digitalkreativ\SimpleGifTransitions\Library\Config();

    $config->setTempDirectory( '<full-path-to-tmp-dir>' )
        ->setDebug( true )
        ->setImageDriver( \Digitalkreativ\SimpleGifTransitions\Library\Config::IMAGE_DRIVER_GD );


    $generator = new \Digitalkreativ\SimpleGifTransitions\GifGenerator( $config );
    $generator->setScenario( new \Digitalkreativ\SimpleGifTransitions\Scenarios\RevealSlideBottom() );
    $generator->setFromImage( '<full-path-to-jpg>'  )
        ->setToImage( '<full-path-to-jpg>' )
        ->generate( '<full-path-to-jpg-to-generate>' );

} catch ( Exception $ex ){
    echo $ex->getMessage() . PHP_EOL;
}

Components used

License

The MIT License (MIT). Please see License File for more information., (*3)

The Versions

28/10 2017

dev-master

9999999-dev https://github.com/digitalkreativ/php-simple-gif-transitions

Create an animated gif that displays a simple transition between one image and another image of the same size

  Sources   Download

MIT

The Requires

 

by Tom Sacré

php gif encode creation animated

02/10 2017

v0.0.3-alpha

0.0.3.0-alpha

Create an animated gif that displays a simple transition between one image and another image of the same size

  Sources   Download

MIT

The Requires

 

by Tom Sacré

01/10 2017

v0.0.2-alpha

0.0.2.0-alpha

Create an animated gif that displays a simple transition between one image and another image of the same size

  Sources   Download

MIT

The Requires

 

by Tom Sacré

01/10 2017

v0.0.1-alpha

0.0.1.0-alpha

Create an animated gif that displays a simple transition between one image and another image of the same size

  Sources   Download

MIT

The Requires

 

by Tom Sacré