Bug #53169 ยป responsive-images.diff
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php | ||
---|---|---|
$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) {
|
||
... | ... | |
$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];
|