Created
November 5, 2017 17:22
-
-
Save hyyan/ca74c00f3767521aa52456084d8a3be0 to your computer and use it in GitHub Desktop.
This file contains 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 characters
<?php | |
require_once 'vendor/autoload.php'; | |
use Jaguar\Canvas, | |
Jaguar\Transformation, | |
Jaguar\Action\Color\Boost, | |
Jaguar\Action\Blur\SelectiveBlur, | |
Jaguar\Action\Posterize, | |
Jaguar\Action\EdgeDetection; | |
$canvas = new Canvas('./image.jpg'); | |
$canvasTransformation = new Transformation($canvas); | |
$canvasTransformation | |
->apply(new EdgeDetection(EdgeDetection::FINDEDGE)) | |
->apply(new Boost()) | |
->apply(new SelectiveBlur()) | |
->apply(new Posterize(64)) | |
->getCanvas() | |
->show(); // send the result to the browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment