• Resolved Charlie Cooper

    (@coopero1)


    Some of my images arent showing as WebP even when I inspect and look at the type column in the network tab

    I’m wondering if this is because I’m using PHP to call the image in large size. Is there a way to fix this or a way to do the same thing but still use WebP?

    <?php $image_2_url = wp_get_attachment_image_src(1065, 'large'); ?>
    
    <img alt="Web design drawn out on paper" class="banner" src="<?= $image_2_url[0] ?>">
    • This topic was modified 1 year, 8 months ago by Charlie Cooper. Reason: extra info

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Dimitar Petrov

    (@demiro)

    Hello @coopero1,

    The issue should not be related to the custom code. If the webP image exists, the web-server will serve it upon browser’s request. However in this case, there are two images for which webP versions do not exist. I confirmed that by just opening the image in my browser and adding .webp to the filename in the URL. Our plugin generates webP versions of the images for which a correct database records exist. In order to achieve that , the image should be uploaded via the default media upload feature of the WordPress app.

    I would recommend the following steps. Regenerate WebP images and test after cleaning the cache. If the webP versions still do not exist, then, re-upload one of them using the mentioned default WordPress feature and regenerate again.

    If the issue still persists after the above recommended steps, you can open a new ticket from your SiteGround User Area so we can investigate the case further.

    Regards,
    Dimitar

    My site has lots of images that are not served as WebP. “Regenerate WebP images”—How do we do that?

    Plugin Support Tsvetan Mitev

    (@tsvetanm)

    Hello @swinggraphics,

    Please note that there is a limit for PNG images. If an image is bigger than 1MB, it will not be converted to WebP. We have put that limit to make sure that the conversion process is stable and will not interfere with the work of your application.

    Additionally, make sure sure that the Nginx Direct Delivery(Site Tools > Speed > Caching) option is enabled and your WP Cron is working as expected when regenerating WebP images.

    In case you are still experiencing issues with the WebP delivery/image optimization, please start your own topic and we will be glad to assist you: https://www.ads-software.com/support/plugin/sg-cachepress/#new-post

    Alternatively, you can contact our Technical Support team from your SiteGround Client Area and we will further look into this.

    Best Regards,

    Tsvetan Mitev

    I’m asking on this thread because the suggestion to regenerate WebP seems to have resolved it, but I do not see a “Regenerate WebP” option anywhere.

    Plugin Support Tsvetan Mitev

    (@tsvetanm)

    You can regenerate the WebP images by simply deactivating the optimization and then re-activating it again. Have in mind that deactivating the option will delete all existing WebP files, including images generated by the plugin and manually uploaded ones. Once you turn the option back on, the plugin will regenerate the WebP copies of your standard images anew.

    Best Regards,

    Tsvetan Mitev

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Some images not using WebP?’ is closed to new replies.