Type to search...

Effects

You can specify different effects for each image. Within one operation type, you can apply multiple images; they will be applied in the order specified.

Parameters

Limitations

  • if within a group of operations, the same effect is specified multiple times, the last one overwrites the previous ones and the effect will be put to the next place

Dependencies

  • These transformations don’t have any dependencies.

Examples

See the following examples about the possible ways of usage.

Set the height to 200, and add pixelate effect too

h:200_e:px:4_e:br:100
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->height(200)->pixelate(4)->brightness(100);

Set the height to 200, and add sepia, pixelate, blur effects with 30% opacity

h:200_e:sepia:10_e:blur:100_e:op:30
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->height(200)->sepia(10)->blur(100)->oilPaint(30);
Table of contents