• Resolved pinkladyapples

    (@pinkladyapples)


    Report number: KGRGKLKG

    Hi,
    firstly, awesome plugin and performance with WP on Litespeed server, thanks to your team !

    Image optimization and use of webp replacing works fine except for images within an NGG gallery, they remain png/jpeg. These are generated within html, as img.data-src or img , so I would have expected them to be converted like the other images on the site have.

    Is this a known bug, is there a workaround ?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @pinkladyapples, our engine can replace img to webp on data-src and I saw you already have this config setting.

    But I find the image on the slide show is on wp-content/gallery which is not the official upload folder so our optimization will exclude this file.

    Could you try to use the wp-content/upload images instead?

    Thread Starter pinkladyapples

    (@pinkladyapples)

    Hi, I tried that, no change . see sample page <fqdn>/18223-2/

    Thread Starter pinkladyapples

    (@pinkladyapples)

    Debug logs shows its trying to find a webp on disk now, I guess it just needs to pull down webp versions from the service

    Yes, after you upload the image to optm server it might need to wait for a moment before pulling it back.

    Thread Starter pinkladyapples

    (@pinkladyapples)

    ok, gave it some time, I don’t see the images being sent to the optimization service. I peeked inside the db in the wp_litespeed_img_optm table, I don’t see the image there.

    the debug logs don’t hint at a problem

     [Media] webp replacing: https://foo/wp-content/uploads/ngg/foo/foo.jpg => LSC_Media->replace_webp()@851 => LSC_Media->_replace_buffer_img_webp()@736 => LSC_Media->_finalize()@424 => LSC_Media::finalize()@407
     [Util] file not exist: /home/foo/public_html/wp-content/uploads/ngg/foo/foo.jpg.webp
     [Media] -no WebP file, bypassed

    any hints why the image service might not be adding these images to the db for processing ?

    Thread Starter pinkladyapples

    (@pinkladyapples)

    if I upload an image through the regular media library, it gets optimized as expected (I see this in the db aswell as the .webp file being pulled)

    if I import this into a gallery, or upload into a gallery, an optimized version is created. (I don’t see an entry in the db).

    Is there a trick to make the image optimization ‘see’ the new image and trigger it’s optimization process ?

    External folder images optm will be added after version 3.2, please keep track with our update.

    Thread Starter pinkladyapples

    (@pinkladyapples)

    Thanks for the update, I can make the webp images outside of wordpress / lscache , and they are served as expected now.

    I look forward to the update with support for external folder though ??

    fwiw, ngg stores file information in the db, so looking at your code, the sql query used to generate the list of files for optimization could be modified to deal with the ngg table in the db aswell as the wp post table, without having to support external folders.

    any update on this?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘nextgen gallery webp’ is closed to new replies.