Install image optimisation packages in ubuntu - for wordpress


I think I maybe doing it wrong but I’m unable to install the following:

pngout - I D/d the binaries from here >

Then followed these instructions >

(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’ 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?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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 &&\
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: <br> <br>