Generate Webp Image In TYPO3 Fluid

- 1 answer

I am trying to have TYPO3 10.4.12 generate webp images as described in the example on this page:

{f:uri.image(image:images.0, fileExtension: 'webp')}

I am using GraphicsMagick and with gm version I get

WebP                       yes

and converting a picture to webp manually via command line works.

Also cwebp is installed.

If I try fileExtension: 'png' it generates a png file so the parameter seems to work.

However the image does not get converted, instead the original unprocessed image gets referenced.



The main problem seems to have been that I needed to add webp to the [GFX][imagefile_ext] configuration.

Additionally sometimes it only worked after removing all generated images under Remove Temporary Assets in the Maintenance section.