PHP Classes

File: img2img/PHP-Instagram-effects-master/examples/sepia.php

Recommend this page to a friend!
  Classes of Rafael Martin Soto  >  PHP Graph  >  img2img/PHP-Instagram-effects-master/examples/sepia.php  >  Download  
File: img2img/PHP-Instagram-effects-master/examples/sepia.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Graph
Generate charts to display as images in Web pages
Author: By
Last change:
Date: 9 months ago
Size: 259 bytes
 

Contents

Class file image Download
<?php
use Zaachi\Image\Filter;
require
'../vendor/autoload.php';

$image = imagecreatefromjpeg(isset($argv[1]) ? $argv[1] : "example.jpg");

$effects = (new Filter($image))->sepia();

header("Content-type: image/png");
imagepng($image);
imagedestroy($image);

For more information send a message to info at phpclasses dot org.