Problem/Motivation

The module does not appear to work with Paragraphs. I use this to create slideshows on my site and I would like to be able to use WebP to help with image optimization.

Steps to reproduce

Create a Paragraph type with an image field and follow method 2 from this post: https://dev.acquia.com/blog/webp-and-drupal

Comments

tevans created an issue. See original summary.

alexmoreno’s picture

Can you make sure your file the steps in the readme, and confirm it’s not working? As long as you are using the responsive image in your paragraph it should work fine

alexmoreno’s picture

Status: Active » Postponed (maintainer needs more info)
pamelalies’s picture

I can confirm that it's not working for image fields on my Paragraphs either. It works as expected for fields on a regular content type, but when I try to set it up the same way for an image field on a Paragraph bundle (using the "Responsive Image" format and with a responsive image style set up) - it just serves the plain .jpg images, no .webp.

tevans’s picture

As a follow up to this for anyone else that runs into this issue: I was able to work around this after upgrading to D9 and simply creating an Image Style that uses the Convert to WEBP effect. Then just use that image style under the Manage Display tab for the paragraph. Not using the WebP module at all now.

jungkunwar’s picture

I also encounter the same problems.

Allowed file extensions adding webp on the allowed file extension on the image field on Paragraph Types doesn't work, whereas regular content types works.