2 namespace TYPO3\CMS\Install\Configuration\Image;
17 use TYPO3\CMS\Install\Configuration;
33 'C:/php/ImageMagick/',
34 'C:/php/GraphicsMagick/',
35 'C:/apache/ImageMagick/',
36 'C:/apache/GraphicsMagick/',
63 foreach ($this->configurationValues as $configurationKey => $configurationValue) {
64 if ($configurationKey !==
'GFX/im_path'
65 && $configurationKey !==
'GFX/im_path_lzw'
67 $currentValue = $this->configurationManager->getConfigurationValueByPath($configurationKey);
68 if ($currentValue !== $configurationValue) {
120 $imPath =
$GLOBALS[
'TYPO3_CONF_VARS'][
'GFX'][
'im_path'];
121 if ((
string)$imPath !==
'' && !in_array($imPath, $searchPaths)) {
123 array_unshift($searchPaths, $path);
127 $imLzwSearchPath =
$GLOBALS[
'TYPO3_CONF_VARS'][
'GFX'][
'im_path_lzw'];
128 if ((
string)$imLzwSearchPath !==
'' && !in_array($imLzwSearchPath, $searchPaths)) {
130 array_unshift($searchPaths, $path);
134 if (isset($this->postValues[
'additionalSearchPath'])
135 && (
string)$this->postValues[
'additionalSearchPath'] !==
''
136 && !in_array($this->postValues[
'additionalSearchPath'], $searchPaths)
138 $path = $this->
cleanUpPath($this->postValues[
'additionalSearchPath']);
139 array_unshift($searchPaths, $path);
153 $path = \TYPO3\CMS\Core\Utility\GeneralUtility::fixWindowsFilePath($path);
155 if (!preg_match(
'/[\\/]$/', $path)) {