• Resolved tores54

    (@tores54)


    Problem with webp, and woocommerce, main image is using jpg all other images in gallery are using webp, what could be the problem? Help please

    • This topic was modified 3 years, 8 months ago by tores54.

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

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

    (@qtwrk)

    Hi,

    https://freeman.com.ua/wp-content/uploads/2021/03/Hd72MRJHWxo.jpg.webp

    because that image doesn’t have webp version I guess

    Best regards,

    Thread Starter tores54

    (@tores54)

    the main question is why is there no webp version in this image, and how to fix it?

    Plugin Support qtwrk

    (@qtwrk)

    some times a webp could be larger than original , and in such case, no point to keep the webp version and will be dropped

    Thread Starter tores54

    (@tores54)

    I think that in my case this is excluded, since the images in the gallery are almost the same, and everyone has a webp version except the main one, and this is a big problem for me, since such an image weighs about 400-600kb, and the webp version is 50-90 kb, and it slows down a lot download page

    Plugin Support qtwrk

    (@qtwrk)

    you can try reset that image and then re-optimize it again , if that still doesn’t give you the webp , then that is the case

    Thread Starter tores54

    (@tores54)

    I’ll try, but I want to clarify, this is not an isolated case, all my products do not have a webp version on the main image, while the rest of the photos in the gallery are optimized.
    What is the chance that on all products there are about 200 of them, the webp version of the image turned out to be larger than the original, especially considering the fact that the size of all images in the gallery is the same

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    if these images are made/edit in same way , I guess the chance for that is considerable

    and if you want , you can package some of these images, like 5 – 10 images, zip it and send to me , I can try it as well

    Best regards,

    Thread Starter tores54

    (@tores54)

    Hi, I have attached the necessary photos, please check
    https://drive.google.com/file/d/19n7QNz-qwDOJjze3uab2LDhbaPCw64b4/view?usp=sharing

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yeah , I don’t get the webp file as well on my test site

    Best regards,

    Thread Starter tores54

    (@tores54)

    conducted an experiment, changed the places of the main image with the second one on which there was previously webp, as a result, there is no webp on the main one again, although if the same image is used as the second one, webp is created, the plug-in still does not want to create webp on the main image, and that’s the problem

    Hi tores54,

    Testing the images in the Google Drive zip file, the majority of the images does indeed not end up with a generated webp image:
    – 7NDNMLIqak0.jpg
    – Fk5xo6hxgIY.jpg
    – FRSbHtCKINQ.jpg
    – o-PpIxUWSMA.jpg
    – SkRpLtCsJRk.jpg
    – STci4WCoyfA.jpg
    – ZkrxrclxCQ0.jpg

    krWpoj_yMH0.jpg does get a webp image.

    The way the decision is made whether there’s going to be a webp image, is based on a filesize comparison.

    Whenever you send an image for optimization 3 things happens:

    – We check the filesize of the original image fetched from your site, and record this (original_filesize).
    – We optimize the image using a set of algorithms to generate the lowest possible size, with a slight quality loss (unless you have lossless optimization enabled). We then record the size (optimized_filesize).
    – We generate a webp image based on the original image. The webp image will still have a slight quality loss. We then record this size as well (optimized_webp_filesize).

    We then do a check whether the generated webp image’s filesize is smaller than the optimized jpeg/png filesize. If it’s smaller, you’ll get the webp image returned. If it’s bigger you’ll not get the webp image returned. Since you’re then increasing the size of the page, which is what you’re trying to prevent in the first place by using the image optimize function.

    Since WordPress has different sizes (thumbnail + scaled/resized versions) for each image, the outcome may differ for each image as well. In some cases there can be optimizations, in other cases, there won’t be.

    If we take 7NDNMLIqak0.jpg as an example:

    – The size when uploaded to WP is 1299518 bytes.
    – The optimized jpeg size is 447307 bytes.
    – The webp imag size is 457024 bytes.

    The webp image is thus 9717 bytes larger than the jpeg.

    Since the webp image is larger, it won’t be returned.

    It’s also worth noting that webp generally turns out larger for large images, it’s just how the webp compression works.

    Thread Starter tores54

    (@tores54)

    OK, thank you for the information

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘webp is not used for the first image in the woocomerce gallery’ is closed to new replies.