Install image optimisation packages in ubuntu - for wordpress

June 24, 2013 7k views
Hello, I think I maybe doing it wrong but I'm unable to install the following: pngout - I D/d the binaries from here > http://www.jonof.id.au/kenutils Then followed these instructions > http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f7/howto/pngout.html > (Changed package name and home directory as needed) optipng - Actually Installed OK I think jpegtran - Unable to locate package (installed by: sudo apt-get install jpegtran) gifsicle - FATAL Failed to fork (installed by: sudo apt-get install gifsicle) I'm trying to install the EWWW-Image optimiser on a wordpress site, which is on a zpanel back-end. I have tried other image optimizers with none of them working -- they make my wordpress admin section white page. Except WP-Smush, which tells me 'Bad response from Smush.it' when I process any images. I do want to get this working for any future wordpress client sites which may want to use image opts. I'm brand new to all this server installation, but trying to learn. Been trying to fix this for hours now and its doing my head in. Can anybody help?
1 comment
  • 2.5 years old request, but ranks high in google :) and ran into the same kind of issues. Below you can find the solution. Running Ubuntu 14.04 LTS myself.

    apt-get install imagemagick php5-imagick
    apt-get install libjpeg-progs
    apt-get install graphicsmagick
    apt-get install gifsicle

    wget http://static.jonof.id.au/dl/kenutils/pngout-20150319-linux.tar.gz &&\
    tar -xf pngout-20150319-linux.tar.gz &&\
    rm pngout-20150319-linux.tar.gz &&\
    cp pngout-20150319-linux/x86_64/pngout /bin/pngout &&\
    rm -rf pngout-20150319-linux

2 Answers
Hello! For help on this plugin, you may find some useful advice by selecting the "support" tab on the plugin page: http://wordpress.org/plugins/ewww-image-optimizer/

not really. ;-) Couldn't find it then. And as I'm linking to this topic from the VestaCP forum pertaining [GUIDE] WordPress at Ubuntu 16.04 NGINX PHP(7)-FPM + Redis Object caching FIX == FTL

The correct syntax for PHP7 is:

sudo apt-get install imagemagick php-imagick -y
sudo apt-get install libjpeg-progs -y
sudo apt-get install graphicsmagick -y
sudo apt-get install gifsicle -y

And installing pngout is no longer necessary as it can be enabled from within EWWW these days, the syntax does remove that notice (and no there ain't a newer version of pngout on that location; doesn't have to be ... it simply works)!

wget http://static.jonof.id.au/dl/kenutils/pngout-20150319-linux.tar.gz &&\
tar -xf pngout-20150319-linux.tar.gz &&\
rm pngout-20150319-linux.tar.gz &&\
cp pngout-20150319-linux/x86_64/pngout /bin/pngout &&\
rm -rf pngout-20150319-linux

Have another answer? Share your knowledge.