-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Andrei Coelho edited this page Sep 5, 2019
·
10 revisions
ImageBuilder is a php library for easily creating / editing images. It uses the GD library for file generation.
- PHP 5+
- GD lib
Using the library is very simple. Just include the autoload and you're done!
require "ImageBuilder/autoload.php";
use ImageBuilder\BuildImage as BuildImage;
To edit and create images you need to use the BuildImage class starting with the static method from and passing the image that will be used as a model.
BuildImage::from('images/zacarias.jpg')
then use the functions that will be applied to the image and save it
BuildImage::from('images/zacarias.jpg')
->negate() // function
->save(); // save
See how you can use functions
These are the methods like crop, resize, flip, etc...
These are the methods for changing image colors.