Project

General

Profile

Bug #92449 » fluid.patch

Marcus Förster, 2021-10-07 10:37

View differences:

source/typo3/sysext/fluid/Classes/ViewHelpers/MediaViewHelper.php 2021-10-07 12:32:37.407039761 +0200
}
}
$this->tag->addAttribute('src', $imageUri);
$this->tag->addAttribute('width', $processedImage->getProperty('width'));
$this->tag->addAttribute('height', $processedImage->getProperty('height'));
if('svg' == $image->getProperty('extension'))
{
if(0 < $width) $this->tag->addAttribute('width', $width);
if(0 < $height) $this->tag->addAttribute('height', $height);
}
else
{
$this->tag->addAttribute('width', $processedImage->getProperty('width'));
$this->tag->addAttribute('height', $processedImage->getProperty('height'));
}
if (in_array($this->arguments['loading'] ?? '', ['lazy', 'eager', 'auto'], true)) {
$this->tag->addAttribute('loading', $this->arguments['loading']);
}
(3-3/3)