PHP Classes

File: img2img/PHP-Instagram-effects-master/README.md

Recommend this page to a friend!
  Classes of Rafael Martin Soto  >  PHP Graph  >  img2img/PHP-Instagram-effects-master/README.md  >  Download  
File: img2img/PHP-Instagram-effects-master/README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Graph
Generate charts to display as images in Web pages
Author: By
Last change:
Date: 11 months ago
Size: 511 bytes
 

Contents

Class file image Download

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
For more information send a message to info at phpclasses dot org.