Created
November 5, 2017 17:00
-
-
Save hyyan/9fe882b18686445f03ef2d003e365d3d to your computer and use it in GitHub Desktop.
Revisions
-
hyyan created this gist
Nov 5, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ <?php require_once 'vendor/autoload.php'; use Jaguar\Canvas, Jaguar\Transformation, Jaguar\Action\Color\Grayscale, Jaguar\Action\EdgeDetection, Jaguar\Action\Color\Negate; $canvas = new Canvas('./image.jpg'); $canvasTransformation = new Transformation($canvas); $canvasTransformation ->apply(new Grayscale()) ->apply(new EdgeDetection(EdgeDetection::LAPLACIAN_FILTER3)) ->apply(new Negate()) ->getCanvas() ->show(); // send the result to the browser