Image Optimization CLI for NGINX or Easy Engine based self hosted WordPress websites. Also known as IOC
.
You need to install jpegoptim
and OptiPNG
for IOC
to work.
jpegoptim
Install it by runningsudo apt-get install jpegoptim
OptiPNG
Install it by runningsudo apt-get install optipng
Then install IOC
by running the following command.
sudo wget -qO ioc https://git.io/vPBEG && sudo chmod +x ./ioc && sudo install ./ioc /usr/local/bin/ioc
Run IOC
by running the following command.
ioc
To update IOC
you need to remove it first and install it again (which will automatically install the latest version)
To remove run
rm -f $(which ioc)
And then finally reinstall it.
- NEW: JPG optimization.
- NEW: PNG optimization.
This open source project is maintained by the help of awesome businesses listed below. What? Read more about it →
For anything else, tweet at @MrAhmadAwais
I have released a video course to help you become a better developer — Become a VSCode Power User →
![](https://raw.githubusercontent.com/ahmadawais/shades-of-purple-vscode/master/images/vscodeproPlay.jpg)
VSCode