Welcome to Centmin Mod Community
Become a Member

Wordpress Anyone using optimise-images.sh with wordpress?

Discussion in 'Blogs & CMS usage' started by niamniamniam, May 27, 2017.

  1. niamniamniam

    niamniamniam New Member

    6
    2
    3
    May 19, 2017
    Ratings:
    +4
    Local Time:
    3:07 AM
    1.13.0
    MariaDB 10
    Hi,
    I was wondering if someone is using optimise-images.sh with wordpress. I'm really thinking in using it as one of those image compressor premium plugins, like shortpixel.
    I've got a huge performance boost from SP Plugin, and use it on many of my sites, but since centminmod already save me a lot on cpanel licenses, maybe it will save me 20 bucks monthy on SP.
    How would that work on the vhost? Something like this?


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

    eva2000 Administrator Staff Member

    54,546
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    4:07 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    probably easier to use wordpress plugin due to wordpress dynamic nature i.e. cronjob for optimise-images.sh might not be frequent enough between user uploaded images as opposed to wp plugin doing conversion at user upload time.

    but try it on test wordpress install and see