You are here

public function ImageAPIOptimizeProcessorInterface::applyToImage in Image Optimize (or ImageAPI Optimize) 8.2

Same name and namespace in other branches
  1. 8.3 src/ImageAPIOptimizeProcessorInterface.php \Drupal\imageapi_optimize\ImageAPIOptimizeProcessorInterface::applyToImage()
  2. 4.x src/ImageAPIOptimizeProcessorInterface.php \Drupal\imageapi_optimize\ImageAPIOptimizeProcessorInterface::applyToImage()

Apply this image optimize processor to the given image.

Image processors should modify the file in-place or overwrite the file on disk with an optimized version.

Parameters

string $image_uri: Original image file URI.

Return value

bool TRUE if an optimized image was generated, or FALSE if the image could not be optimized.

3 methods override ImageAPIOptimizeProcessorInterface::applyToImage()
TestProcessorAppendCharacters::applyToImage in tests/module/imageapi_optimize_module_test/src/Plugin/ImageAPIOptimizeProcessor/TestProcessorAppendCharacters.php
Apply this image optimize processor to the given image.
TestProcessorBlackPNG::applyToImage in tests/module/imageapi_optimize_module_test/src/Plugin/ImageAPIOptimizeProcessor/TestProcessorBlackPNG.php
Apply this image optimize processor to the given image.
TestProcessorFailedGreenPNG::applyToImage in tests/module/imageapi_optimize_module_test/src/Plugin/ImageAPIOptimizeProcessor/TestProcessorFailedGreenPNG.php
Apply this image optimize processor to the given image.

File

src/ImageAPIOptimizeProcessorInterface.php, line 77

Class

ImageAPIOptimizeProcessorInterface
Defines the interface for image optimize processors.

Namespace

Drupal\imageapi_optimize

Code

public function applyToImage($image_uri);