You are here

public function ImageStyleInterface::createDerivative in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/ImageStyleInterface.php \Drupal\image\ImageStyleInterface::createDerivative()

Creates a new image derivative based on this image style.

Generates an image derivative applying all image effects and saving the resulting image.

Parameters

string $original_uri: Original image file URI.

string $derivative_uri: Derivative 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 ImageStyleInterface::createDerivative()
ImageStyle::createDerivative in core/modules/image/src/Entity/ImageStyle.php
Creates a new image derivative based on this image style.

File

core/modules/image/src/ImageStyleInterface.php, line 117
Contains \Drupal\image\ImageStyleInterface.

Class

ImageStyleInterface
Provides an interface defining an image style entity.

Namespace

Drupal\image

Code

public function createDerivative($original_uri, $derivative_uri);