27 protected $name =
'ImageMagick6';
38 'GFX/image_processing' => 1,
42 'GFX/im_path_lzw' =>
'',
43 'GFX/im_version_5' =>
'im6',
44 'GFX/im_v5effects' => 1,
45 'GFX/im_mask_temp_ext_gif' => 1,
46 'GFX/colorspace' =>
'sRGB',
67 foreach ($searchPaths as $path) {
68 if (TYPO3_OS ===
'WIN') {
69 $executable =
'identify.exe';
71 $executable =
'identify';
73 if (@is_file($path . $executable)) {
74 $command = escapeshellarg($path . $executable) .
' -version';
75 $executingResult = FALSE;
78 $firstResultLine = array_shift($executingResult);
80 if (strpos($firstResultLine,
'ImageMagick') !== FALSE) {
81 list(,$version) = explode(
'ImageMagick', $firstResultLine);
83 list($version) = explode(
' ', trim($version));
84 if (version_compare($version,
'6.0.0') >= 0) {
85 $this->foundPath = $path;
findExecutableInPath(array $searchPaths)
findImageMagick6InPaths(array $searchPaths)
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
static exec($command, &$output=NULL, &$returnValue=0)