2 namespace TYPO3\CMS\Install\Configuration\Image;
17 use TYPO3\CMS\Install\Configuration;
27 protected $name =
'GraphicsMagick';
38 'GFX/image_processing' => 1,
42 'GFX/im_path_lzw' =>
'',
43 'GFX/im_version_5' =>
'gm',
44 'GFX/im_v5effects' => -1,
45 'GFX/im_mask_temp_ext_gif' => 1,
46 'GFX/colorspace' =>
'RGB',
69 foreach ($searchPaths as $path) {
70 if (TYPO3_OS ===
'WIN') {
71 $executable =
'gm.exe';
75 if (@is_file($path . $executable)) {
76 $command = escapeshellarg($path . $executable) .
' -version';
77 $executingResult =
false;
78 \TYPO3\CMS\Core\Utility\CommandUtility::exec($command, $executingResult);
80 $firstResultLine = array_shift($executingResult);
81 if (strpos($firstResultLine,
'GraphicsMagick') !==
false) {
82 $this->foundPath = $path;