3

I'm using a webp image in a default image content element.

webp images are enabled:

$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] .= ',webp';

But in frontend, a png is rendered, instead of a webp, when it's processed by TYPO3/ImageMagick/GraphicsMagick.

When explicitly saying webp should be generated, it works as expected:

<f:image image="{file}" fileExtension="webp" />

How to configure TYPO3 or ImageMagick/GraphicsMagick to not convert it to webp automatically?

quellenform
  • 142
  • 8
Sven
  • 722
  • 1
  • 7
  • 25

1 Answers1

1

Might be a bit late but I found the following workaround when I want TYPO3 to respect the extension. Of course this is not suitable if your input file is not a proper image for the web, therefore use with care:

<f:image image="{file}" fileExtension="{file.properties.extension}" />
quellenform
  • 142
  • 8
ilomedia
  • 11
  • 1