Site logo

Archived topic

Featured image in webp format

11 replies · Started by Dalibor on July 1, 2020

Viewing posts 1–12 of 12

If I load the .webp image in the media library and use it as a featured image, it does not scale down on mobile. It loads a full-size version only.
What would be the best way to approach this?
Is there a way so that .webp images are also auto-scaled down (like regular jpeg) for the better mobile experience?

Hi there,

Not super familiar with .webp images, yet, but I don't see why they wouldn't scale. Is there a specific page where we can see the issue?

Sure, take a look here: https://freelancerin.com/, I've returned it here only for your testing. Please let me know when you are done.

Hi there,

i am not seeing any srcset images in the featured image markup.
Can you try disabling plugins such as lazy loader?

Lazy load through Autoptimize disabled.

Well, its not the lazy loader.

Do you have any other plugins or functions related to Images?

Autoptimze, Wp fastest cache, Asset cleanup, Async javascript, Heartbeat control, Clearfy, WP optimize... take your pick ;).
I'll turn them all off now.

All plugins offline.

Can you:

1, Check the settings in Customizer > Layout > Blog --> Featured Images Posts.
Make sure the Attachment size is Full, and the Width and Height fields are empty.

2. Now upload a JPEG image so i can see if that is working correctly.

It is already set up like that. And as I have stated before, JPEG images are working correctly.
My guess is as I needed to install the plugin (WP Enable WebP-https://wordpress.org/plugins/wp-enable-webp/) to upload WEBP files to the media library, it somehow regulates CSS setup for WEBP featured images?

Edit: plugins back on

Sorry i assumed you must of been using a plugin or script to allow support for webP images as WP doesn't support them by default.

And i am not sure that plugin will fix the problem either, as it comes down to WP supporting WebP when it creates the various media attachment sizes. You may need to look at some of server side / CDN options - like this plugin requires:

https://wordpress.org/plugins/webp-express/

Hopefully WP will start supporting it natively in the near future

This plugin has resolved the issue, thank you.

Glad to hear that

This archived topic is closed to new replies.