Skip to content

gbelloncle/PHP-Instagram-effects

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-Instagram-effects

PHP class for photo effects similar to Instagram

Usage

use Zaachi\Image\Filter;
require 'vendor/autoload.php';

$image = imagecreatefromjpeg("/path/to/image.jpg");

$filter = (new Filter($image))->aqua();

header('Content-type: image/jpeg');
imagejpeg($filter->getImage());

Examples of usage are in the examples directory. To generate example images, this bash snippet may be helpful:

for f in *.php; do php $f > ${f%.php}.png; done

About

php class for photo effects as a Instagram

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%