public function ImagemagickToolkit::setDestinationFormatFromExtension in ImageMagick 8.2
Same name and namespace in other branches
- 8 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::setDestinationFormatFromExtension()
Sets the image destination format from an image file extension.
When set, it is passed to the convert binary in the syntax "[format]:[destination]", where [format] is a string denoting an ImageMagick's image format.
Parameters
string $extension: The destination image file extension.
Return value
$this
Deprecated
in 8.x-2.3, will be removed in 8.x-3.0. Use ImagemagickExecArguments::setDestinationFormatFromExtension() instead.
See also
https://www.drupal.org/project/imagemagick/issues/2938375
File
- src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php, line 976
Class
- ImagemagickToolkit
- Provides ImageMagick integration toolkit for image manipulation.
Namespace
Drupal\imagemagick\Plugin\ImageToolkitCode
public function setDestinationFormatFromExtension($extension) {
@trigger_error('setDestinationFormatFromExtension() is deprecated in 8.x-2.3, will be removed in 8.x-3.0. Use ImagemagickExecArguments::setDestinationFormatFromExtension() instead. See https://www.drupal.org/project/imagemagick/issues/2938375.', E_USER_DEPRECATED);
$this
->arguments()
->setDestinationFormatFromExtension($extension);
return $this;
}