public function ImagemagickToolkit::setDestinationFormat in ImageMagick 8
Same name and namespace in other branches
- 8.2 src/Plugin/ImageToolkit/ImagemagickToolkit.php \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::setDestinationFormat()
Sets the image destination format.
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 $format: The image destination format.
Return value
$this
File
- src/
Plugin/ ImageToolkit/ ImagemagickToolkit.php, line 726
Class
- ImagemagickToolkit
- Provides ImageMagick integration toolkit for image manipulation.
Namespace
Drupal\imagemagick\Plugin\ImageToolkitCode
public function setDestinationFormat($format) {
$this->destinationFormat = $this->formatMapper
->isFormatEnabled($format) ? $format : '';
return $this;
}