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

Breadcrumb

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

function ImageEffectInterface::applyEffect

Applies an image effect to the image object.

Parameters

\Drupal\Core\Image\ImageInterface $image: An image file object.

Return value

bool TRUE on success. FALSE if unable to perform the image effect on the image.

4 methods override ImageEffectInterface::applyEffect()
ConvertImageEffect::applyEffect in core/modules/image/src/Plugin/ImageEffect/ConvertImageEffect.php
Applies an image effect to the image object.
DesaturateImageEffect::applyEffect in core/modules/image/src/Plugin/ImageEffect/DesaturateImageEffect.php
Applies an image effect to the image object.
ResizeImageEffect::applyEffect in core/modules/image/src/Plugin/ImageEffect/ResizeImageEffect.php
Applies an image effect to the image object.
RotateImageEffect::applyEffect in core/modules/image/src/Plugin/ImageEffect/RotateImageEffect.php
Applies an image effect to the image object.

File

core/modules/image/src/ImageEffectInterface.php, line 31

Class

ImageEffectInterface
Defines the interface for image effects.

Namespace

Drupal\image

Code

public function applyEffect(ImageInterface $image);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal