public function ImagemagickExecArguments::setSourceFormat in ImageMagick 8.2
Same name and namespace in other branches
- 8.3 src/ImagemagickExecArguments.php \Drupal\imagemagick\ImagemagickExecArguments::setSourceFormat()
Sets the source image format.
Parameters
string $format: The image format.
Return value
$this
File
- src/
ImagemagickExecArguments.php, line 451
Class
- ImagemagickExecArguments
- Stores arguments for execution of ImageMagick/GraphicsMagick commands.
Namespace
Drupal\imagemagickCode
public function setSourceFormat($format) {
$this->sourceFormat = $this->execManager
->getFormatMapper()
->isFormatEnabled($format) ? $format : '';
return $this;
}