public ImageStyleInterface::createDerivative($original_uri, $derivative_uri)
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.
File
- core/modules/image/src/ImageStyleInterface.php, line 119
Class
- ImageStyleInterface
- Provides an interface defining an image style entity.
Namespace
Drupal\image
Code
public function createDerivative($original_uri, $derivative_uri);
Please login to continue.