Important Notice (11 May 2020)

ochJSsocials LIGHT is now available for download WITHOUT a registered account. For support and automatic updates via the Joomla 'one-click' Updater you will need a FREE subscription. This subscription will give you a Download ID you can configure in the plugin's advanced tab (starting from version 1.2.0).
You will need to download and install that version manually.

Solved Feature Request: WebP for background images on non-image elements

This ad is inserted via ochCall2Action and displayed via ochAddAds
Looks like Google ran out of ads to serve... or do you have an ad blocker activated?

  • Ruud van Lent
  • Ruud van Lent's Avatar Topic Author
  • Offline
  • Moderator
  • Moderator
3 weeks 6 days ago - 3 weeks 6 days ago #1272 by Ruud van Lent

ochResponsiveImages handles all IMG elements on your site that meet the configured settings. It replaces them with IMG srcset to have a set of different sized images that the browser can pick the best suitable from.

In version 1.7.0 I introduced a new feature: WebP support (Googles highly performant and #SEO effective image format). When your server and the visitors browser supports it, the images in the IMG srcset will be converted into this WebP format.

That lead to the question: can we convert more images? Specifically the images used on non IMG elements that display an image via inline css style > background-image
This is often used in sliders as using the css style background-image to show an mage has more styling possibilities then when displaying the image as an IMG element.

I have been working on a version that has the possibility to locate and convert images set via the css style background-image on an element. When found that background image will then be replaced (when supported on the browser) with the WebP variant.

I have it implemented on this site (see the full screen slider on the home page) and am looking for customers who are willing to test this in a test environment,

Leave a note as response on this topic (do not email me) and I will mail you the test version with instructions on how to use.

Thanks in advance!
Last edit: 3 weeks 6 days ago by Ruud van Lent.

Please Log in or Create an account to join the conversation.

3 weeks 6 days ago #1273 by Graeme Armitage
Ruud happy to help

The following user(s) said Thank You: Ruud van Lent

Please Log in or Create an account to join the conversation.

End of content

No more pages to load

Log In or Sign Up

Forgot your password? / Forgot your username?