Welcome to Centmin Mod Community
Register Now

Wordpress Anyone using optimise-images.sh with wordpress?

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

  1. niamniamniam

    niamniamniam New Member

    3
    2
    3
    May 19, 2017
    Ratings:
    +4
    Local Time:
    11:42 PM
    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

    30,903
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    11:42 AM
    Nginx 1.13.x
    MariaDB 5.5
    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