• Resolved Mattw1000

    (@mattw1000)


    Hey guys

    I was just wondering please, would it be possible for you guys to add a feature to create web p images on upload please? Otherwise can you suggest a good way to create the web p to then be shown by your plug in.

    On that note, i already have most of my older images as web p (i used to use key cdns optimus to create the web p’s) but they do not seem to be showing when i have the option ticked in your plug to show web p. for e.g. at the url below, when i check in chrome its still showing a jpg. i have a web p on the server for this image though….

    https://www.calmhappyhealthy.com/wellbeing-products/aromatherapy/carrier-oils/avena-sweet-almond-oil/

    with regards to your image optimisation feature, if i tick that, will i then end up download all of the images on my site again, but optimised, therefore making my web storage a lot larger? or do you guys store the optmized images?

    Thanks

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support Cold Egg

    (@eric780217)

    Hi Mattw1000,

    Have you tried to set LSCache>Settings>Media>Image WebP Replacement as ON?
    Is this function you are asking for?

    Best,
    Eric

    Thread Starter Mattw1000

    (@mattw1000)

    Hey Eric,

    Yes, i have that set but the web p’s i have on the server dont seem to be loading in chrome.

    Does that function, also convert new jpgs i upload please?

    Thanks

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi, Matt

    Are the WebP images in the same location as the originals? For instance, if you have path/image.jpg is the corresponding WebP image stored at path/image.webp? If so, it might work. If not, it definitely won’t.

    Currently, there is no function to automatically optimize images, and there is also no way to create WebP images without also attempting to optimize the JPGs.

    Plugin Support Cold Egg

    (@eric780217)

    Hi Mattw1000,

    During the process, three versions of each image file are generated, more information please see wiki:
    https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:image-optimization#optimization_steps

    I am not so sure why only one webp image found from your page-source but not others, ‘src=”//calmhappyhealthy.b-cdn.net/wp-content/plugins/woodiscuz-woocommerce-comments/captcha/captcha.php?comm_id=2359-0.webp”‘

    Can you check .htaccess file include codes like this?

    ### marker WEBP start ###
    RewriteCond %{HTTP_ACCEPT} "image/webp"
    RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    ### marker WEBP end ###
    

    Best,
    Eric

    Thread Starter Mattw1000

    (@mattw1000)

    Hey Eric and Lisa,

    yes i have this in my htaccess…

    ### marker WEBP start ###
    RewriteCond %{HTTP_ACCEPT} “image/webp”
    RewriteRule .* – [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
    ### marker WEBP end ###

    and yes my webp images are all in the same folders as my jpgs on the server.

    so if i set up the image optimisation with your plug in, do i have to download all the 3 new images to my server to use or are they kept your end and loaded from there? and if so how does that work with my cdn please?

    Am i right in saying the webp might not work because i have not set up image optimise with your plug in?

    thanks
    Matt

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    I just clicked on your image, and I see that the WebP is in the same place, so it seems there is more to the logic than that.

    Our developer isn’t in the office today, so I don’t have an easy way to answer your question about why it doesn’t work. I suspect that it may be a database field that determines whether your image has been optimized and whether the WebP is enabled for that image. If that’s how it works, it’s not going to know about your old WebPs.

    I’ll have a look through the code and see if I can figure it out.

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Oops I didn’t see your reply before I sent mine!

    so if i set up the image optimisation with your plug in, do i have to download all the 3 new images to my server to use or are they kept your end and loaded from there? and if so how does that work with my cdn please?

    The images all live on your own server after they are optimized.

    Am i right in saying the webp might not work because i have not set up image optimise with your plug in?

    That could be the case. It’s what I was referring to in my previous post. I’ll see if I can figure that out from the code.

    Thread Starter Mattw1000

    (@mattw1000)

    ok great, thanks Lisa! What i might have to do, is delete all of my old web p’s and then set up the optimisation with your plug in and recreate them all again.

    Does your plug in optimise all different sizes of the images for the site, so for e.g. all the different thumbnail sizes?

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Yes, it optimizes all of the media sizes.

    I’ve been looking through the code, and I’m not familiar enough to answer confidently whether it’s a database thing or not, but there is one thing you can try:

    In the Media section, in List view, hover over one of the images that has a WebP version, and see if you are given any options to enable/disable WebP. That might be one way to force it to use your old ones, although it would be tedious if you have a lot of them.

    If you’re not given any WebP-related options for the old images, then it’s definitely controlled by something that happens within the optimization process itself.

    Thread Starter Mattw1000

    (@mattw1000)

    ok thanks Lisa, i tried that but no luck I’m afraid.

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    That confirms it’s something within the image optimization process itself, then. It looks like the only way to use WebP’s is to regenerate them. Sorry about that!

    Thread Starter Mattw1000

    (@mattw1000)

    ok thanks. Can i just check please…

    if the images have already been optimised previously by imageoptim before upload BUT there is no longer any other image optimiser plug ins like smash active, could this still cause processing issues?

    and to clarify, will the process create 3 extra images to download for each image and each image version i currently have on my server please?

    I’m just thinking thats going to add an awful lot of extra storage space for the new files.

    Is there a reason you need to send back the original files again, rather than just sending back the optimised one and the webp please?

    Thanks again!

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    if the images have already been optimised previously by imageoptim before upload BUT there is no longer any other image optimiser plug ins like smash active, could this still cause processing issues?

    I’m not sure. At the moment, I don’t know a whole lot about the inner workings of the optimization function itself. I’ll see what I can find out and get back to you.

    and to clarify, will the process create 3 extra images to download for each image and each image version i currently have on my server please?

    Yes, it will. Well, two of them are new. One is your original image.

    Is there a reason you need to send back the original files again, rather than just sending back the optimised one and the webp please?

    I believe it’s so that you can easily revert back if you need to. But yes, it does come at the cost of storage space.

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    if the images have already been optimised previously by imageoptim before upload BUT there is no longer any other image optimiser plug ins like smash active, could this still cause processing issues?

    If the images were optimized before upload, then there should not be a problem.

    As I understand it, if they were optimized after upload, there’s the potential for a problem, if the md5 doesn’t match up with what we are expecting. This can happen even if the image optimization plugin you used has been uninstalled.

    Thread Starter Mattw1000

    (@mattw1000)

    mmm, ok yes i did optimise using a plug in after upload until recently. So might be an issue.

    Do you think it might be possible to add a feature to just test a small amount of images to see everything works ok?

    or even an option to only add the web p and not optimise the original image please?

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Web P and image opt’ is closed to new replies.