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

image editor logo Status License

ImageEditor 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 "ImageEditor/autoload.php";

use ImageEditor\EditImage as EditImage;

To edit and create images you need to use the EditImage class starting with the static method from and passing the image that will be used as a model.

EditImage::from('images/zacarias.jpg') 

then use the functions that will be applied to the image and save it

EditImage::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