Learn about Centmin Mod LEMP Stack today
Become a Member

Wordpress Installing WebP Express Wordpress Plugin on Centmin Mod Nginx

Discussion in 'Blogs & CMS usage' started by eva2000, May 11, 2019.

  1. Mike Guista

    Mike Guista New Member

    24
    10
    3
    Sep 15, 2014
    Ratings:
    +10
    Local Time:
    2:12 AM
    1.7.6
    10.x
    Hi,

    Do I need to do anything on "After HTML" section?

    [​IMG]

    Webp images are not loading if "After HTML" is unchecked. Chrome works on both selection if html is checked. But, it doesn't work if the second option is selected.

     
  2. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,711
    Local Time:
    8:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Don't enable Alter HTML section not required at all. Best performance is letting Nginx do the webP conditional detection and serving to webP supported web browsers and not let WebP Express PHP code do the work. For Centmin Mod Nginx config outlined in this thread, WebP Express wordpress plugin's only task is to auto convert images to WebP at upload time.
     
  3. fabianski

    fabianski Member

    102
    14
    18
    Feb 20, 2019
    Ratings:
    +36
    Local Time:
    7:12 AM
    This is working, the images are converted to webp when they are uploaded but if I send an image and then delete it only the webp version is deleted from the gallery, the .jpg file still remains there.
    When the plugin is disabled when deleting the image everything is erased correctly.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,711
    Local Time:
    8:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    send an image ? send where/how ?
     
  5. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    7:12 AM
    Latest
    Latest
    hmm, when you upload an image in the media galary it gets converterd automaticly, but if you deleted them the image entry is still in the database. It normaly won't show up in the media galary, but some regulary maintenance to you database to erase old images won't hurt.

    It was a while ago that I cleaned up my databases but there are 2 entries that you need to delete. Just take care that you "only" erase the correct year/month.
     
  6. fabianski

    fabianski Member

    102
    14
    18
    Feb 20, 2019
    Ratings:
    +36
    Local Time:
    7:12 AM
    in wordpress, in the media option.
     
  7. fabianski

    fabianski Member

    102
    14
    18
    Feb 20, 2019
    Ratings:
    +36
    Local Time:
    7:12 AM
    The image remains in the wordpress media folder.
    When I uploaded the image went to this month's folder, there were their original version and webp.
    but when I deleted the same image in the wordpress gallery only the webp version was deleted, the original version and its thumbnails were still there.
     
  8. fabianski

    fabianski Member

    102
    14
    18
    Feb 20, 2019
    Ratings:
    +36
    Local Time:
    7:12 AM
    I think it should be a bug related to the plugin not to cmm
     
  9. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    7:12 AM
    Latest
    Latest
  10. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,711
    Local Time:
    8:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yeah sounds like a bug in plugin and not even wordpress as wordpress wouldn't know that there's a .webp version created by a 3rd party plugin ?
     
  11. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    12:12 PM
    1.9.10
    10.1.11
    I applied everything but images still looks like image/jpeg format from headers.
    I see the .webp extension files in every folder (i run the batch converter) but they don't looks like .webp format.

    It may related with cloudflare caching ?
     
  12. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,711
    Local Time:
    8:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    @negative
     
  13. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    12:12 PM
    1.9.10
    10.1.11
    So i have two options as cloudflare user (basic plan on that wordpress website)

    1. Custom rule matches: example.com/*.jpg, set: Cache level to: Bypass (but i doesn't cache all images on website so another optimization problem)

    2. switch operation mode to “CDN friendly” and use HTML altering (I don't understand that exactly, should i use html altering only? Because i don't use external / another CDN)
     
  14. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,711
    Local Time:
    8:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    don't do that cloudflare cache has nothing to do with converting to webP, all you do is reduce performance

    no if you have cloudflare converting webP automatically just don't use this webP express plugin. If cloudflare isn't converting webP i.e. free plan, then use this webP express plugin and if that doesn't work it means you haven't configured webP express plugin properly as per 1st post of this thread https://community.centminmod.com/th...-wordpress-plugin-on-centmin-mod-nginx.17469/
     
  15. negative

    negative Active Member

    415
    50
    28
    Apr 11, 2015
    Ratings:
    +98
    Local Time:
    12:12 PM
    1.9.10
    10.1.11
    I installed the plugin, and setup with your instructions.
    I don't use wpsecure and custom wp install and i put that code to my nginx domain conf after location / tag and run nprestart command of course.

    Code (Text):
    location ~ ^/wp-content/uploads/ {
      #pagespeed off;
      #pagespeed unplugged;
      #autoindex on;
      #add_header X-Robots-Tag "noindex, nofollow";
      location ~* ^/wp-content/uploads/(.+/)?(.+)\.(png|jpe?g)$ {
       expires 30d;
       add_header Vary "Accept-Encoding";
       add_header Cache-Control "public, no-transform";
       try_files $uri$webp_extension $uri =404;
      }
    }


    Btw, i'm using centminmod beta so .wepb map directives including already.

    And i used bulk convert button on the webp express plugin so it converted all images and i see the .webp files in every wp-content/uploads/xx folder even new uploaded files too, so no problem about files too.

    But; content-type still looks like image/jpeg when i look on webpagetest.org or source/network. Not .webp
     
  16. Mrbo

    Mrbo Member

    113
    7
    18
    Jun 17, 2018
    Ratings:
    +7
    Local Time:
    5:12 PM
    Does anybody know what happend to the plugin since its no longer available for download? What can I do instead?
     
  17. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,711
    Local Time:
    8:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    wow that is news WebP Express
    from discussion forum at [WebP Express] Support | WordPress.org no one knows why plugin was closed ? :(

    seems their webp-express github repository is still up though rosell-dk/webp-express and issues tracker at rosell-dk/webp-express

    last commit updates were June 14th, 2019 rosell-dk/webp-express

    i.e. 0.14 is comming! · rosell-dk/webp-express@8c53b2f

    milestones still have 0.15 and 0.16 etc listed at rosell-dk/webp-express

    looks like major changes from current 0.13.2 in wordpress plugin listing and 0.14 rosell-dk/webp-express

    and between 0.13.2 vs master branch rosell-dk/webp-express
     
    Last edited: Jun 15, 2019
  18. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    7:12 AM
    Latest
    Latest
    On GitHub he is still active, guess it's an attempt to buy him a cup of coffee;)
    Project_CMM_7250.png
     
  19. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,711
    Local Time:
    8:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    could be although could be temp closure until he gets 0.15+ out as from the milestone/roadmap there are drastic changes which probably would be untested as yet ?? who knows :)

    the hunt continues for that wordpress plugin which does automatic webp conversion on user uploaded images I guess
     
  20. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    7:12 AM
    Latest
    Latest
    Well, watching can't hurt
    Project_CMM_7251.png
     
  21. eva2000

    eva2000 Administrator Staff Member

    53,811
    12,159
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,711
    Local Time:
    8:12 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    yup via my custom slack channel :)

    upload_2019-6-15_21-39-0.png