Type to search...

Rotate

rotate

Serves for move images in a circle round an axis or centre.

Aliases

  • r

Parameters

  • integer [-N, N]; multiples of 360 degrees is allowed as well

Limitations

  • the resulting image cannot be more than 10000x10000 px

Dependencies

  • This transformation does not have any dependencies.

Examples

See the following examples about the possible ways of usage.

Set the width to 200 px and rotate the image with 45 degrees

wh:200_r:45_bg:white
use shardimage\shardimagephp\factories\Transformation;
$transformations = (new Transformation())->size(200)->rotateCW(45)->background('white');
Table of contents