public function ImageAPIOptimizePipelineInterface::applyToImage in Image Optimize (or ImageAPI Optimize) 4.x
Same name and namespace in other branches
- 8.3 src/ImageAPIOptimizePipelineInterface.php \Drupal\imageapi_optimize\ImageAPIOptimizePipelineInterface::applyToImage()
- 8.2 src/ImageAPIOptimizePipelineInterface.php \Drupal\imageapi_optimize\ImageAPIOptimizePipelineInterface::applyToImage()
Creates a new image derivative based on this image optimize pipeline.
Generates an image derivative applying all image optimize processors and saving the resulting image.
Parameters
string $image_uri: Original image file URI.
Return value
bool TRUE if an image derivative was generated, or FALSE if the image derivative could not be generated.
1 method overrides ImageAPIOptimizePipelineInterface::applyToImage()
- ImageAPIOptimizePipeline::applyToImage in src/
Entity/ ImageAPIOptimizePipeline.php - Creates a new image derivative based on this image optimize pipeline.
File
- src/
ImageAPIOptimizePipelineInterface.php, line 115
Class
- ImageAPIOptimizePipelineInterface
- Provides an interface defining an image optimize pipeline entity.
Namespace
Drupal\imageapi_optimizeCode
public function applyToImage($image_uri);