• Resolved Vegsur

    (@miimie)


    Hello, im getting error from pagespeed that says “Serve images in next-gen formats”. Weird thing is that i have optimized all images on my site. On Media Library it says all my images have Webp. version and they are on. I have enabled webc replacement and all that on Litespeed settings, still blog post entries have png, jpg images.

    How can i fix this or where i can start investigating this issue?
    https://gyazo.com/4a0135a595670f77114cd66f86e007a5

Viewing 13 replies - 16 through 28 (of 28 total)
  • My ideas have finished)
    Try to restore all optimized images and re-optimize them again

    Plugin Support qtwrk

    (@qtwrk)

    it’s due to the & character in directory name

    as quick workaround , you can add this at top of your .htaccess

    RewriteCond %{HTTP_ACCEPT} "image/webp"
    RewriteCond %{REQUEST_FILENAME}.webp -f
    RewriteRule ^(.*).(jpg|jpeg|png|gif) $1.$2.webp [T=image/webp,L]

    it will use rewrite engine to forcefully replace webp , the URI will remain same, but under the hood it will be webp format

    Thread Starter Vegsur

    (@miimie)

    Added that top of the .htaccess and it didnt do anything or under the hood means google will still give warnings? Weird thing is that webp. images worked perfectly before. There is nothing more to do?

    Plugin Support qtwrk

    (@qtwrk)

    Which page is it? Your Home page?

    Thread Starter Vegsur

    (@miimie)

    Yeah in home page, those images in “blog entries” or what they are called. https://gyazo.com/2127b462ab4c7b1ecb8be6acd1a7498e All the images in blog posts are webp. but those blog entries and related post images which are the same than blog entries on homepage

    Plugin Support qtwrk

    (@qtwrk)

    that file doesn’t have webp version

    https://ruutunopeus.fi/wp-content/uploads/2021/09/sahkopotkulaudan-viritys-250×200.jpg —> 200 OK

    https://ruutunopeus.fi/wp-content/uploads/2021/09/sahkopotkulaudan-viritys-250×200.jpg.webp —> 404 no found

    sometimes some image won’t have webp version , most common reason is webp file is larger than original

    Thread Starter Vegsur

    (@miimie)

    Im pretty sure they had webp versions until i started messing up with the image optimization settings.

    After messing up with the settings Google started giving me this “warning” https://gyazo.com/6b328ddfa5a79a47b2ab426fb010693a

    So theres nothing do, like force them to be served as webp. Or do i have to just ignore the and let them be?

    Plugin Support qtwrk

    (@qtwrk)

    the logic for the webp replacement and even my rewrite rule trick is :

    1. check if incoming request accepts image/webp or not

    2. check if webp files exists or not

    3. if 1) and 2) both to be true , then send webp file instead of jpg/png file

    so for whatever reason you did , the 2) becomes false , so the check won’t be met

    in your case , the webp doesn’t even exists, then you can not force it

    if you did not “remove the original backup” , then you can try “desotry all optimized data” and then optimize them again , see if you can get the webp files

    Thread Starter Vegsur

    (@miimie)

    Ive destroyed and optimized then 5 times in 2 days. I think i had “remove the original backup” on. Is there anything i could do now?

    Deleted image and added back then optimized. Says in media library its optimized but nope https://gyazo.com/b511a006c7b19c7c548b7e4dd4a3e8b2

    Just weird that im 99% sure they had webp versions and i cant do anything to get them back. Its hurting my SEO

    • This reply was modified 3 years, 4 months ago by Vegsur.
    • This reply was modified 3 years, 4 months ago by Vegsur.
    Plugin Support qtwrk

    (@qtwrk)

    if that is the case …

    I guess only thing left for you is to manually generate the webp…

    Thread Starter Vegsur

    (@miimie)

    Do you guys have any guide, how to do that or should i dive in the google search?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    well , I don’t exactly have step by step guide for such case

    but just giving you an idea , there should be plenty of webp convertor , get one of them , zip your /wp-conten/uploads/ and download it to your computer , then run webp conversion in your computer , then bulk upload them back to your site

    you need make file name as test.jpg to test.jpg.webp , attach .webp at end of it

    Best regards,

    Thread Starter Vegsur

    (@miimie)

    Nice thank you very much for your time and help!!! πŸ™‚

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Webp images not working’ is closed to new replies.