diff --git a/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php b/typo3/sysext/core/Classes/Imaging/GraphicalFunctions.php
index c3617bc9478ea67ecc0371ebc0d8d8b4885e4756..4e730654c6aff1429ebb4869ee6b4b6b4cac421d 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)) {