WP Carousel is serving jpg/png image instead of webP image
-
I have the WP Carousel Pro version. My site has 2 versions of every jpg or png image in webP format. This is to allow serving webP images for browsers that support webP, or serving jpg or png images for those browsers that do not support the webP image format.
Serving webP images is far superior for website speed and performance over serving jpg or png images. This is usually done with rewrite rules in the .htaccess file(s). But WP Carousel is not using the webP images even though they are available to use… This is a problem that needs to be resolved!
If you visit the URL: https://missrodeonevada.com/miss-rodeo-nevada-association/
You can inspect each of the images for the Board of Directors and will see that the webP image is served instead of the jpg/png image version (that was specified in creating the page or post). Here’s the HTML source:
<img decoding="async" loading="lazy" class="aligncenter wp-image-5388 lazyloaded" src="https://missrodeonevada.com/wp-content/uploads/2023/05/Tara-Miles.jpg.webp" alt="Tara Miles - MRNA Vice President" width="116" height="116" data-src="https://missrodeonevada.com/wp-content/uploads/2023/05/Tara-Miles.jpg.webp">
and here is the source for an image in the WP Carousel:
<img src="https://missrodeonevada.com/wp-content/uploads/2023/04/Las-Vegas-Events-Sponsor-Slider.png" alt="Las Vegas Events Sponsor Slider" width="460" height="253" class="skip-lazy " data-src="https://missrodeonevada.com/wp-content/uploads/2023/04/Las-Vegas-Events-Sponsor-Slider.png" data-srcset="https://missrodeonevada.com/wp-content/uploads/2023/04/Las-Vegas-Events-Sponsor-Slider.png" srcset="https://missrodeonevada.com/wp-content/uploads/2023/04/Las-Vegas-Events-Sponsor-Slider.png">
See the difference?
WP Carousel needs to support the use of .htaccess rewrites (or any mechanism that works) to serve webP images in the carousel over the jpg/png images that may be defined in the setup of the carousel via the plugin for those browsers supporting webP. Else jpg/png images are okay to be served for browsers with no webP support.
Can this be done?
The page I need help with: [log in to see the link]
- The topic ‘WP Carousel is serving jpg/png image instead of webP image’ is closed to new replies.