diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index 01f49d1..eabd055 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -1453,7 +1453,7 @@ class ContentObjectRenderer { $dimensionKeys = array('width', 'height', 'maxW', 'minW', 'maxH', 'minH'); foreach ($dimensionKeys as $dimensionKey) { $dimension = $this->stdWrap($sourceConfiguration[$dimensionKey], $sourceConfiguration[$dimensionKey . '.']); - if (!$dimension && isset($conf['file.'][$dimensionKey])) { + if (!$dimension) { $dimension = $this->stdWrap($conf['file.'][$dimensionKey], $conf['file.'][$dimensionKey . '.']); } if ($dimension) { @@ -1467,9 +1467,9 @@ class ContentObjectRenderer { $dimension = intval($dimension * $pixelDensity); } $sourceRenderConfiguration['file.'][$dimensionKey] = $dimension; + unset($sourceRenderConfiguration['file.'][$dimensionKey.'.']); } } - $sourceInfo = $this->getImgResource($sourceRenderConfiguration['file'], $sourceRenderConfiguration['file.']); $sourceConfiguration['width'] = $sourceInfo[0]; $sourceConfiguration['height'] = $sourceInfo[1];