// PHP installations using non-bundled GD do not have imagerotate.
if(!function_exists('imagerotate')){
watchdog('image','The image %file could not be rotated because the imagerotate() function is not available in this PHP installation.',array('%file'=>$image->getSource()));
watchdog('image','The image %file could not be rotated because the imagerotate() function is not available in this PHP installation.',array('%file'=>$this->getImage()->getSource()));
returnFALSE;
}
...
...
@@ -161,10 +160,10 @@ public function rotate(ImageInterface $image, $degrees, $background = NULL) {
@@ -189,10 +188,10 @@ public function crop(ImageInterface $image, $x, $y, $width, $height) {
/**
* {@inheritdoc}
*/
publicfunctiondesaturate(ImageInterface$image){
publicfunctiondesaturate(){
// PHP installations using non-bundled GD do not have imagefilter.
if(!function_exists('imagefilter')){
watchdog('image','The image %file could not be desaturated because the imagefilter() function is not available in this PHP installation.',array('%file'=>$image->getSource()));
watchdog('image','The image %file could not be desaturated because the imagefilter() function is not available in this PHP installation.',array('%file'=>$this->getImage()->getSource()));
returnFALSE;
}
...
...
@@ -202,12 +201,12 @@ public function desaturate(ImageInterface $image) {