28 protected $name =
'ImageMagick6';
39 'GFX/processor_enabled' =>
true,
41 'GFX/processor_path' =>
'',
42 'GFX/processor_path_lzw' =>
'',
43 'GFX/processor' =>
'ImageMagick',
44 'GFX/processor_effects' =>
true,
45 'GFX/processor_allowTemporaryMasksAsPng' =>
false,
46 'GFX/processor_colorspace' =>
'sRGB',
69 foreach ($searchPaths as $path) {
71 $executable =
'identify.exe';
73 if (!@is_file($path . $executable)) {
74 $executable =
'magick.exe';
77 $executable =
'identify';
79 if (@is_file($path . $executable)) {
80 $command = escapeshellarg($path . $executable) .
' -version';
81 $executingResult =
false;
84 $firstResultLine = array_shift($executingResult);
86 if (strpos($firstResultLine,
'ImageMagick') !==
false) {
87 list(, $version) = explode(
'ImageMagick', $firstResultLine);
89 list($version) = explode(
' ', trim($version));
90 if (version_compare($version,
'6.0.0') >= 0) {
91 $this->foundPath = $path;