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 webp to png automatically?
BeforeFileProcessingEvent
could be used for setting$configuration['fileExtension'] = 'webp';
. Should solve this use-case.