You are here

public function ImagemagickExecArguments::setDestinationFormat in ImageMagick 8.3

Same name and namespace in other branches
  1. 8.2 src/ImagemagickExecArguments.php \Drupal\imagemagick\ImagemagickExecArguments::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/ImagemagickExecArguments.php, line 392

Class

ImagemagickExecArguments
Stores arguments for execution of ImageMagick/GraphicsMagick commands.

Namespace

Drupal\imagemagick

Code

public function setDestinationFormat(string $format) : ImagemagickExecArguments {
  $this->destinationFormat = $format;
  return $this;
}