Invert
This effect inverts the colors of image files (e.g.: white becomes black, black becomes white, etc.)
Aliases
e:inv
Parameters
- This transformation does not include parameters.
Limitations
- This transformation does not have any limitations.
Dependencies
- This transformation does not have any dependencies.
Example
Set the width to 200 px and invert colors
w:200_e:inv
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(200)->invert();
Set the width to 200 px and invert colors of face area only
w:200_g:face_e:inv
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(200)->gFace()->invert();
Set the width to 200 px and invert colors of face areas only
w:300_g:faces_e:inv
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(300)->gFaces()->invert();