From 2e46303631076308fb3d2434d128c3e339f27b9a Mon Sep 17 00:00:00 2001 From: Stefan Froemken <froemken@gmail.com> Date: Thu, 9 Jan 2014 22:24:13 +0100 Subject: [PATCH] [BUGFIX] Repair f:image VH for Backend ImageMagick command was executed from directory typo3/, but output file is relative and starts with typo3temp. This patch adds absolute path to output file when in BE mode. Resolves: #54886 Releases: 6.2 Change-Id: I6216a9bb74b9619c090c1ef70322cb6788a73c92 Reviewed-on: https://review.typo3.org/26729 Reviewed-by: Oliver Klee Reviewed-by: Xavier Perseguers Tested-by: Xavier Perseguers Reviewed-by: Marcin S?gol Tested-by: Marcin S?gol Reviewed-by: Stefan Neufeind Tested-by: Stefan Neufeind --- typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php b/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php index c3617bc9478e..4e730654c6af 100644 --- a/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php +++ b/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php @@ -2270,7 +2270,8 @@ class GraphicalFunctions { } // Making the temporary filename: $this->createTempSubDir('pics/'); - $output = $this->absPrefix . $this->tempPath . 'pics/' . $this->filenamePrefix . $theOutputName . '.' . $newExt; + $relativeOutputPath = $this->tempPath . 'pics/' . $this->filenamePrefix . $theOutputName . '.' . $newExt; + $output = (TYPO3_MODE === 'BE') ? PATH_site . $relativeOutputPath: $this->absPrefix . $relativeOutputPath; // Register temporary filename: $GLOBALS['TEMP_IMAGES_ON_PAGE'][] = $output; if ($this->dontCheckForExistingTempFile || !$this->file_exists_typo3temp_file($output, $imagefile)) { -- GitLab