Type to search...

Flip

flip

Flipping the image using the X or Y axis.

Parameters

  • vertical, v, vflip: flipping on the vertical axis
  • horizontal, h, hflip: flipping on the horizontal axis
  • vh, vhflip: flipping on both vertical and horizontal axis

Limitations

  • gets overwritten within a group and the last value is always the valid one

Dependencies

  • This transformation does not have any dependencies.

Examples

See the following examples about the possible ways of usage.

Flip the image vertically

w:200_flip:v
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(200)->flipVertical();

Flip the image horizontally

w:200_flip:h
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(200)->flipHorizontal();

Flip the image both vertically and horizontally

w:200_flip:vh
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->width(200)->flipHorizontalAndVertical();
Table of contents