You are here

public function ImagemagickExecManagerInterface::checkPath in ImageMagick 8.2

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

Verifies file path of the executable binary by checking its version.

Parameters

string $path: The user-submitted file path to the convert binary.

string $package: (optional) The graphics package to use.

Return value

array An associative array containing:

  • output: The shell output of 'convert -version', if any.
  • errors: A list of error messages indicating if the executable could not be found or executed.
1 method overrides ImagemagickExecManagerInterface::checkPath()
ImagemagickExecManager::checkPath in src/ImagemagickExecManager.php
Verifies file path of the executable binary by checking its version.

File

src/ImagemagickExecManagerInterface.php, line 48

Class

ImagemagickExecManagerInterface
Provides an interface for ImageMagick execution managers.

Namespace

Drupal\imagemagick

Code

public function checkPath($path, $package = NULL);