• Resolved cheonmu

    (@cheonmu)


    Hi,

    I checked calling webp by using google developer tool. (screenshot)

    But when I click the image file, the file name extension is still jpeg. (screenshot 1) screenshot 2

    I transformed the first image to webp on this link. I wonder if it is working well.

    website link is here

    I am using Shortpixel with cache enabler, wp-rocket plugin on Nginx + Ubuntu + Php7 + Mariadb.

    I put below code on my server block and http block already.

    
    # server config block
    location ~* ^/wp-content/.+\.(png|jpg)$ {
        add_header Vary Accept;
        try_files $uri$webp_ext $uri =404;
    }
    	map $http_accept $webp_ext {
        default "";
        "~*webp" ".webp";
    	}
    

    Thank you.

    • This topic was modified 6 years ago by cheonmu.
    • This topic was modified 6 years ago by cheonmu.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ShortPixel

    (@shortpixel)

    Hey,
    thanks for using ShortPixel first of all! ??

    I’ve checked your website from a Chrome browser and here’s what I can see:
    https://imgur.com/a/0N0xTFq

    Further investigating this my conclusion is:
    1) if the WebP image is present the it will be displayed OK, e.g.
    https://ja.seoartgallery.com/wp-content/uploads/2018/11/76004b12c149fa14694b2bbf8a4f0b3a-595×595.webp
    2) if the WebP version of an image doesn’t exist (for older jpeg images) the it won’t be displayed, for example
    https://ja.seoartgallery.com/wp-content/uploads/2017/05/2707d032ec485f4319a7c4f6fd6a366d-595×595.jpg
    https://ja.seoartgallery.com/wp-content/uploads/2017/05/2707d032ec485f4319a7c4f6fd6a366d-595×595.webp

    So my suggestion is to make sure you have all the WebP version of the images created first of all and then it should work fine.

    Best regards,
    Alex

    Thread Starter cheonmu

    (@cheonmu)

    @shortpixel

    Hi, Thanks for answering!

    I have already converted a lot of image files to webp files, but still the files in jpeg and webp formats are loaded simultaneously in the Chrome devlepor tool.

    How can I test whether the webp files work properly?

    If I see that WEBP file is normally operating, I am thinking of paying for the service your company provides, re-upload all the images on my website and zip them by Glossy.

    But is there any function that switches uploaded image files to WEBP file?

    Plugin Author ShortPixel

    (@shortpixel)

    Hello again, let me try to answer your questions:

    1)How can I test whether the webp files work properly?: just open a Chrome browser and see if the WebP version of the file(s) appear. Please note though that ShortPixel won’t try to add the markup that will server WebP images unless they already exist on disk

    2) Not sure it is necessary to re-upload all the images. If you already did optimize them then its enough just to restore them, select the WebP option & Glossy and then just re-optimize them all again. This should generate the WebP version of the image for all the JPEGs.

    Let me know if you need further assistance,
    Alex

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is WEBP well operating on my website?’ is closed to new replies.