PHP Classes

File: img2img/PHP-Instagram-effects-master/

Recommend this page to a friend!
  Classes of Rafael Martin Soto   PHP Graph   img2img/PHP-Instagram-effects-master/   Download  
File: img2img/PHP-Instagram-effects-master/
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: 2 years ago
Size: 511 bytes


Class file image Download


PHP class for photo effects similar to Instagram


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

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

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

header('Content-type: image/jpeg');

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