• Resolved Philip Faster

    (@philipfaster)


    I have some images on the WordPress media that already optimized by LS image optimizer. Big thanks for that.

    First, take a look on this screenshot
    https://prnt.sc/r3l5lk
    You can see I have 4 images in that example

    Sometimes I’m checking on my media, and saw some of the optimized image (non-WebP) are smaller in size than WebP, see image 1. get 10% optim-jpg than just 3% on webP

    But, I don’t know why, some of the WebP can’t be disabled. (images 1 and 3).
    in images 2 and 4, I can disable them without a problem.

    what I know is when the percentage number is in Black, then it has button to disable it. when it is in blue, then it can’t be disabled. Image 2 is exception, my cursor on it.

    So, my question are:
    1. what I need to know is, how to disable just on image 1?
    2. Then what are the rules that some images will have no “disable WebP” button?

    thank you…

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    `if ( $this->info( $local_file . ‘.webp’, $post_id ) ) {
    $desc = __( ‘Click to Disable WebP’, ‘litespeed-cache’ ) ;
    $cls_webp = ‘litespeed-txt-webp’ ;
    }
    elseif ( $this->info( $local_file . ‘.optm.webp’, $post_id ) ) {
    $cls .= ‘-disabled’ ;
    $desc = __( ‘Click to Enable WebP’, ‘litespeed-cache’ ) ;
    $cls_webp = ‘litespeed-txt-disabled’ ;
    }`

    according to code , disable button won’t show if this image has no webp replacement

    Could you please verify in file system , that image has webp file generated ?

    Best regards,

    Thread Starter Philip Faster

    (@philipfaster)

    Oh yes, you’re right… I don’t have them.
    There is no WebP in the original size image, but there are WebP in all of the thumbnail, medium, and large size files.

    uploads
    –date folder
    —-NCU-Zhong-Da-Lake-150×150.bk.jpg
    —-NCU-Zhong-Da-Lake-150×150.jpg
    —-NCU-Zhong-Da-Lake-150×150.jpg.webp
    —-… other sizes same as above
    —-NCU-Zhong-Da-Lake.bk.jpg
    —-NCU-Zhong-Da-Lake.jpg

    and how to fix it?
    I already reset the optimized image, and reoptimize it, but still have no WebP.
    oh ya, The Object Cache is disable, I didn’t use it.

    update:
    I already tried to download the original image,
    then open it in paint, just save to overwrite it.
    reupload it to linked post….

    the result is,
    sometimes (an ori image) works, generated WebP,
    Sometimes (another ori image) don’t, just like before… no webP…

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please provide me this image NCU-Zhong-Da-Lake.bk.jpg ?

    Best regards,

    Thread Starter Philip Faster

    (@philipfaster)

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Initially I thought is because the original image can not generate the webp version , as in some rare case, webp could be larger than original , or some special color space in that jpg file, but seems this is not the case as I can get the webp on my test site.

    Now could you please reset this particular image in Media page, and then enable advanced debug log to your IP , then send this image to optimization , after few minutes it will be pulled back , then please check debug log , and see if you got any error message for webp optimization.

    Best regards,

    Thread Starter Philip Faster

    (@philipfaster)

    Hi,

    I didn’t see any error on the Image Optimization page…
    “Optimize Automatically” set to ON, so after I sent optimization requests, the cron job auto pull the images…

    please download the debug.log here:
    https://drive.google.com/file/d/155PtHm_Ca6LY-PXwo5PFdxn6GMnhgRvm/view?usp=sharing

    and also…
    I already send the report, maybe it could help…
    Report number: TLOVJYFB
    Report date: 02/19/2020 16:39:16

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    02/19/20 23:35:23.840 [YOUR_IP:51350 1 eWg] [Img_Optm] Pulled optimized img: /path/public_html/articles/wp-content/uploads/2020/02/NCU-Zhong-Da-Lake.jpg
    02/19/20 23:35:23.841 [YOUR_IP:51350 1 eWg] [Img_Optm] Update _table_img_optm record [id] 642
    02/19/20 23:35:24.193 [YOUR_IP:51350 1 eWg] [Img_Optm] Pulled optimized img: /path/public_html/articles/wp-content/uploads/2020/02/NCU-Zhong-Da-Lake-300x169.jpg
    02/19/20 23:35:24.500 [YOUR_IP:51350 1 eWg] [Img_Optm] Pulled optimized img WebP: /path/public_html/articles/wp-content/uploads/2020/02/NCU-Zhong-Da-Lake-300x169.jpg.webp
    02/19/20 23:35:24.501 [YOUR_IP:51350 1 eWg] [Img_Optm] Update _table_img_optm record [id] 643

    Please delete the shared debug log.

    this must be weird , other images are having webp log , but the main image doesn’t even show it.

    Please submit a ticket here

    we will investigate it further.

    best regards,

    • This reply was modified 4 years, 9 months ago by qtwrk.
    Thread Starter Philip Faster

    (@philipfaster)

    Hi,
    I already submit it to tech support.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can’t disable WebP on some images’ is closed to new replies.