php class for photo effects as a Instagram
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
examples
src/Image
.gitignore
LICENCE
README.md
composer.json

README.md

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