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.
- 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
- These transformations don’t have any dependencies.
See the following examples about the possible ways of usage.
Set the height to 200, and add pixelate effect too
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
use shardimage\shardimagephp\factories\Transformation; $transformations = (new Transformation())->height(200)->sepia(10)->blur(100)->oilPaint(30);