image_rotate($source, $destination, $degrees, $background = 0x000000)
drupal/includes/image.inc, line 242
Rotate an image by the given number of degrees.
$source The file path of the source image.
$destination The file path of the destination image.
$degrees The number of (clockwise) degrees to rotate the image.
$background An hexadecimal integer specifying the background color to use for the uncovered area of the image after the rotation. E.g. 0x000000 for black, 0xff00ff for magenta, and 0xffffff for white.
TRUE or FALSE, based on success.
| Name | Description |
|---|---|
| Image toolkits | Drupal's image toolkits provide an abstraction layer for common image file manipulations like scaling, cropping, and rotating. The abstraction frees module authors from the need to support multiple image libraries, and it allows site... |
function image_rotate($source, $destination, $degrees, $background = 0x000000) {
return image_toolkit_invoke('rotate', array($source, $destination, $degrees, $background));
}