• Resolved gcnj123

    (@superfc7)


    I really like this plugin. I encountered some very strange problems when using image optimization.

    Media library:

    A large part of the images have ‘optm’ in gray and cannot be clicked. At first I thought it was because the webp file was larger than jpg so it was not generated, but actually it says ‘webp save xx%’ next to it.

    I tested some images and added .webp to the end of the url. The result is that some images have generated webp and some have not. I further tested the reduced version of the image. I found that some images, although they did not generate [full size.webp], generated reduced versions of webp, such as [300*300.webp].

    Front end:

    I have a page where both the thumbnails and the large images are all .jpg, even if this picture actually has a webp version.
    There is an even stranger case. I have a few other pages where the pictures on the page should be 300×300, but sometimes they show [full size.jpg]. And when I refresh the page, sometimes those pictures will change to [300×300.webp].

    This is my report number: PWGDULJG
    I also saved advanced log. If you need i will send you.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter gcnj123

    (@superfc7)

    .

    Plugin Support qtwrk

    (@qtwrk)

    have you checked this page ?

    Thread Starter gcnj123

    (@superfc7)

    Yes, my case should belong to ‘Some WebP Load, Some do Not’.
    I have checked the site address in setting->general and it matches the URL of the image. My browser is the latest version of Chrome.
    I have also tried to destroy all optimization data and optimize again, but it did not work.

    Plugin Support qtwrk

    (@qtwrk)

    if you add .webp manually to these not webp’ed URI , does it serve image ?

    Thread Starter gcnj123

    (@superfc7)

    no. Many images not exists .webp, just direct to 404 page.

    Plugin Support qtwrk

    (@qtwrk)

    yeah , some image just won’t have webp

    the ones in your screenshot , showing few percentage origin optimize, this most likely indicates the images were optimized before LSCWP does , and that , frequently result in case like this.

    Thread Starter gcnj123

    (@superfc7)

    But some images is very large, in media library it said

    WebP saved 79%

    Still no .webp

    Thread Starter gcnj123

    (@superfc7)

    Sorry, that first image has .webp, but it just didnt display on frontend.

    Plugin Support qtwrk

    (@qtwrk)

    yes , that does not matter in this case, what matters is the original image optimization ratio , that was used to compare the generated webp , the webp will be dropped if larger than origin

    each image you see in media page, has a series of group images , the percentage could only indicate one or few of the group images, but not to all of them

    if the image is loaded by other means besides <img tag , it may not be able to replace

    you can use this workaround

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

    add to your .htaccess

    • This reply was modified 3 years, 1 month ago by qtwrk.
    Thread Starter gcnj123

    (@superfc7)

    i add this here and purge all cache but still not work for my images on Gallery page.

    Is it right place?

    Plugin Support qtwrk

    (@qtwrk)

    better at top of it , before #LITESPEED WP CACHE BEGIN line

    from what I see, it works , the filename is still same , but content type will be forcefully loaded by webp file if exists

    • This reply was modified 3 years, 1 month ago by qtwrk.
    Thread Starter gcnj123

    (@superfc7)

    i switch chrome mode, i seems work

    • This reply was modified 3 years, 1 month ago by gcnj123.
    Plugin Support qtwrk

    (@qtwrk)

    I mean , above that BEGIN LSCACHE line

    and please check my previous post screenshot

    Thread Starter gcnj123

    (@superfc7)

    I cleared my browser cache, and now the images are displaying webp format correctly. Thank you very much for your help, this is the best cache plugin I have ever used!

Viewing 14 replies - 1 through 14 (of 14 total)

The topic ‘Webp not load correctly’ is closed to new replies.