image_aplatir{webp} with transparency

Hello,
Is there a way to use image_aplatir{webp} while maintaining transparency?

Kind regards,
Urs

The last argument of image_aplatir is transparency : when this parameter is 1, the transparency of the GIF is preserved. See examples on |image_aplatir - SPIP - It’s documented for GIF, but have you tried it on WEBP ?

Dear JLuc,

Thank you. I’ve succeeded with:

|image_aplatir{webp,0,100,1}

It confused me to provide a background color, but I’ve simply put 0 for that argument and it seems to work.

The function accepts as parameters, in order: image type (webp), background color (I’ve put 0 here), image quality (100), and if to preserve transparency (1).

Thank you.
Urs