zaachi / php-instagram-effects
PHP class for photo effects like Instagram
Installs: 7 621
Dependents: 0
Suggesters: 0
Security: 0
Stars: 56
Watchers: 8
Forks: 15
Open Issues: 1
Requires
- ext-gd: *
This package is not auto-updated.
Last update: 2024-05-15 06:05:36 UTC
README
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