Go to Configuration > Media > Image Styles. Create a new Style and try to add rotate effect. It is non working.

Comments

YurkinPark’s picture

StatusFileSize
new995 bytes

it just old version of GD extension of PHP without rotateimage function

YurkinPark’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, rotate_effect.patch, failed testing.

YurkinPark’s picture

StatusFileSize
new1.68 KB

with rules of testing

YurkinPark’s picture

Status: Needs work » Needs review
eojthebrave’s picture

See also #758628: Improve GD library hook_requirements() for color and image modules

That issue provides a patch that performs a requirements check for imagerotate and imagefilter support and displays a warning if they are not available.

However, we might want to also consider implementing something like #4 here where we hide the desaturate and rotate effects if they are not available. I'm not sure what kind of consequences this would have for contrib modules implementing hook_image_default_styles and hook_image_styles_alter which allow modules to assign effects to an image style. What happens if the effect doesn't actually exist?

Someone should probably test this out.

catch’s picture

Version: 7.0-alpha2 » 7.x-dev
Status: Needs review » Needs work

Please fix the whitespace issues in the patch. if ($foo) instead of if($foo).

mrded’s picture

Status: Needs work » Needs review
StatusFileSize
new1.94 KB

Status: Needs review » Needs work

The last submitted patch, drupal-747042-8.patch, failed testing.

mrded’s picture

Status: Needs work » Needs review
StatusFileSize
new1.94 KB

Sorry, it was my syntax mistake. Check out new patch.

claudiu.cristea’s picture

Version: 7.x-dev » 8.x-dev
Status: Needs review » Needs work
Issue tags: +backport

I think this needs to be fixed in 8.x first and then backport to D7.

mrded’s picture

Version: 8.x-dev » 7.x-dev
Status: Needs work » Needs review

In Drupa 8 it has been fixed already:

  public function rotate(ImageInterface $image, $degrees, $background = NULL) {
    // 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()));
      return FALSE;
    }
    //--
  }
sivaji_ganesh_jojodae’s picture

Issue summary: View changes
Status: Needs review » Fixed
StatusFileSize
new144.04 KB

This has been fixed in recent drupal 7.x branch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.