function Image::apply

Same name in other branches
  1. 9 core/lib/Drupal/Core/Image/Image.php \Drupal\Core\Image\Image::apply()
  2. 8.9.x core/lib/Drupal/Core/Image/Image.php \Drupal\Core\Image\Image::apply()
  3. 11.x core/lib/Drupal/Core/Image/Image.php \Drupal\Core\Image\Image::apply()

Overrides ImageInterface::apply

8 calls to Image::apply()
Image::convert in core/lib/Drupal/Core/Image/Image.php
Converts an image to the format specified by the extension.
Image::createNew in core/lib/Drupal/Core/Image/Image.php
Prepares a new image, without loading it from a file.
Image::crop in core/lib/Drupal/Core/Image/Image.php
Crops an image to a rectangle specified by the given dimensions.
Image::desaturate in core/lib/Drupal/Core/Image/Image.php
Converts an image to grayscale.
Image::resize in core/lib/Drupal/Core/Image/Image.php
Resizes an image to the given dimensions (ignoring aspect ratio).

... See full list

File

core/lib/Drupal/Core/Image/Image.php, line 141

Class

Image
Defines an image object to represent an image file.

Namespace

Drupal\Core\Image

Code

public function apply($operation, array $arguments = []) {
    return $this->getToolkit()
        ->apply($operation, $arguments);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.