Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Image.php

function 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);
}
RSS feed
Powered by Drupal