setDestinationFormat('format'), where 'format' is a string * denoting an Imagemagick supported format, or via * $arguments->setDestinationFormatFromExtension('extension'), where * 'extension' is a string denoting an image file extension. * * When the destination format is set, it is passed to ImageMagick's convert * binary with the syntax "[format]:[destination]". * * @param \Drupal\imagemagick\ImagemagickExecArguments $arguments * The ImageMagick/GraphicsMagick execution arguments object. * @param string $command * The ImageMagick/GraphicsMagick command being called. * * @see http://www.imagemagick.org/script/command-line-processing.php#output * @see http://www.imagemagick.org/Usage/files/#save * * @see \Drupal\imagemagick\ImagemagickExecArguments * @see \Drupal\imagemagick\Plugin\ImageToolkit\ImagemagickToolkit::convert() * @see \Drupal\imagemagick\Plugin\FileMetadata\ImagemagickIdentify::identify() */ function hook_imagemagick_arguments_alter(\Drupal\imagemagick\ImagemagickExecArguments $arguments, $command) { }