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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Screen Shot 2022-04-22 at 2.34.03 PM.png | 89.27 KB | tevans |
| #5 | Screen Shot 2022-04-22 at 2.33.32 PM.png | 135.21 KB | tevans |
Comments
Comment #2
alexmoreno commentedCan 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
Comment #3
alexmoreno commentedComment #4
pamelalies commentedI 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.
Comment #5
tevans commentedAs 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.
Comment #6
jungkunwar commentedI 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.