-
Notifications
You must be signed in to change notification settings - Fork 1
Filters Methods
Andrei Coelho edited this page Sep 5, 2019
·
3 revisions
brightness(int $level, mixed $alias = false)
Use this function to changes the brightness of the image. For this, you need set the level of brightness.
This level has a range -255
to 255
. The bigger the clearer. The smaller the darker.
EditImage::
from('images/turtle.jpg', 'img1')
->brightness(-100)
->save();
grayscale(mixed $alias = false)
Use this function to transform image in grayscale.
EditImage::
from('images/turtle.jpg')
->grayscale()
->save();
negate(mixed $alias = false)
Use this function to invert the colors of the image.
EditImage::
from('images/turtle.jpg')
->negate()
->save();