Skip to content
Andrei Coelho edited this page Sep 5, 2019 · 10 revisions

Image Builder Logo Status License

ImageBuilder is a php library for easily creating / editing images. It uses the GD library for file generation.

Dependencies

Usage

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.

Clone this wiki locally