public function ImagemagickExecManager::getPackage in ImageMagick 8.3
Same name and namespace in other branches
- 8.2 src/ImagemagickExecManager.php \Drupal\imagemagick\ImagemagickExecManager::getPackage()
Gets the binaries package in use.
Parameters
string $package: (optional) Force the graphics package.
Return value
string The default package ('imagemagick'|'graphicsmagick'), or the $package argument.
Overrides ImagemagickExecManagerInterface::getPackage
3 calls to ImagemagickExecManager::getPackage()
- ImagemagickExecManager::checkPath in src/
ImagemagickExecManager.php - Verifies file path of the executable binary by checking its version.
- ImagemagickExecManager::execute in src/
ImagemagickExecManager.php - Executes the convert executable as shell command.
- ImagemagickExecManager::getPackageLabel in src/
ImagemagickExecManager.php - Gets a translated label of the binaries package in use.
File
- src/
ImagemagickExecManager.php, line 125
Class
- ImagemagickExecManager
- Manage execution of ImageMagick/GraphicsMagick commands.
Namespace
Drupal\imagemagickCode
public function getPackage(string $package = NULL) : string {
if ($package === NULL) {
$package = $this->configFactory
->get('imagemagick.settings')
->get('binaries');
}
return $package;
}