[img_rotate/]


[img_rotate/] rotates the image clockwise by the specified number of degrees. Positive or negative values are accepted. Empty triangles created by the rotation are filled with the given RGB background color. If Imagick is available, the background opacity can be adjusted using color_a. The value is a floating number between 0.0 (transparent) and 1.0 (opaque).

[img_rotate output="{format}" degrees="{int}" color_r="{0-255}" color_g="{0-255}" color_b="{0-255}" color_a="{0-1.0}"]<source>[/img_rotate]

degrees

[img_rotate output="img" degrees="90"]atest.gif[/img_rotate]
atest.gif
<img src="/wp-content/uploads/image-cache/1d2cf16c/atest_gif/rotate_90_00000000.gif" width="243" height="172" alt="atest.gif" />

colors

[img_rotate output="img" degrees="-45" color_r="0" color_g="100" color_b="255" color_a="1.0"]atest.gif[/img_rotate]
atest.gif
<img src="/wp-content/uploads/image-cache/1d2cf16c/atest_gif/rotate_315_0064ff0a.gif" width="296" height="295" alt="atest.gif" />