You are here

public function ImagemagickExecManagerInterface::execute in ImageMagick 8.3

Same name and namespace in other branches
  1. 8.2 src/ImagemagickExecManagerInterface.php \Drupal\imagemagick\ImagemagickExecManagerInterface::execute()

Executes the convert executable as shell command.

Parameters

string $command: The executable to run.

\Drupal\imagemagick\ImagemagickExecArguments $arguments: An ImageMagick execution arguments object.

string &$output: (optional) A variable to assign the shell stdout to, passed by reference.

string &$error: (optional) A variable to assign the shell stderr to, passed by reference.

string $path: (optional) A custom file path to the executable binary.

Return value

bool TRUE if the command succeeded, FALSE otherwise. The error exit status code integer returned by the executable is logged.

1 method overrides ImagemagickExecManagerInterface::execute()
ImagemagickExecManager::execute in src/ImagemagickExecManager.php
Executes the convert executable as shell command.

File

src/ImagemagickExecManagerInterface.php, line 90

Class

ImagemagickExecManagerInterface
Provides an interface for ImageMagick execution managers.

Namespace

Drupal\imagemagick

Code

public function execute(string $command, ImagemagickExecArguments $arguments, string &$output = NULL, string &$error = NULL, string $path = NULL) : bool;