rotate

Rotates the image.

parameters

  • angle or direction of rotation: an angle value.

  • crop mode: boolean, activate or not the crop mode

  • cropping box center coordinates: dimension values

  • background fill: Default is transparent.

JSON object properties

  • angle: angle or direction of rotation

  • crop: activate crop mode

  • x: x (easting) coordinate of the center of the crop box

  • y: y (northing) coordinate of the center of the crop box

  • background (or color): fill color

simplified syntax parameters

  • prefix a: angle

  • switch crop: crop mode switch

  • prefix x: x (easting) coordinate of the center of the crop box

  • prefix y: y (northing) coordinate of the center of the crop box

array type parameters

The first value is always angle. Other values can be:

  • crop

  • crop, then x, y and background color

  • crop, then background color, then x and y

  • background color

  • background color, then crop

  • background color, then x and y

string or number type parameters

Angle of rotation (or direction).

Example 1 - Turn left

{ "rotate":"left" }

Maldives: W400×H225

Maldives: W225×H400

Simplified syntax: a_left,c_rotate

Example 2 - Turn 45 degrees

{ "rotate":45 }

Maldives: W400×H225

Maldives: W444×H443

Simplified syntax: a_45,c_rotate

Example 3 - Turn 45 degrees, fill background with second dominant color

{ "rotate":[45,"$dom-1"] }

Maldives: W400×H225

Maldives: W444×H443

Simplified syntax: bg_$dom-1,a_45,c_rotate

Example 4 - Free angle, crop to original size

Maldives: W400×H225

Maldives: W400×H225

Simplified syntax: a_45,crop,c_rotate

Example 5 - Free angle, crop to original size, with focus

Maldives: W400×H225

Maldives: W400×H225

Simplified syntax: a_45,crop,x_50p,y_25p,c_rotate