Question

Install image optimisation packages in ubuntu - for wordpress

  • Posted June 24, 2013

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?

Subscribe
Share

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

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/ <br> <br>