-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Andrei Coelho edited this page Sep 6, 2019
·
10 revisions
ImageEditor is a php library for easily creating / editing images. It uses the GD library for file generation.
- PHP 5.3 +
- GD lib
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.