public function ImagemagickExecManagerInterface::checkPath in ImageMagick 8.3
Same name and namespace in other branches
- 8.2 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 68
Class
- ImagemagickExecManagerInterface
- Provides an interface for ImageMagick execution managers.
Namespace
Drupal\imagemagickCode
public function checkPath(string $path, string $package = NULL) : array;