Issue Bug Closed

#62940f:image width and height are 0 if attribute is not set in fluid for .svg images

d.ros no-lastname-given 11/14/14, 05:41 updated 10/02/18, 11:49

Description

What I’ve done

I have put this fluid

<f:image src="{settings.logoImage}" alt="Bild Logo" title="Logo" />

while settings.logoImage is an SVG. I do not want to set width and heigth and I don’t want to have output on this attribute.

What happens

FE output is

<img title="Logo" alt="Bild Logo" src="/typo3conf/ext/myext/Resources/Public/Assets/IMAGES/logo.svg" width="0" height="0">

while default to width and height seems to be NULL if not set.

What is expected

FE output must be

<img title="Logo" alt="Bild Logo" src="/typo3conf/ext/myext/Resources/Public/Assets/IMAGES/logo.svg">

while width and height is not set and NULL the attribute should not be rendered.

Reviews 1