Reduce image file sizes and improve website performance using Linux littleutils image optimizers within WordPress.
Author: | Niroma (profile at wordpress.org) |
WordPress version required: | 3.0.1 |
WordPress version tested: | 4.9.6 |
Plugin version: | 1.1.5.1 |
Added to WordPress repository: | 01-06-2018 |
Last updated: | 18-06-2018
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | https://wordpress.org/plugins/wp-image-optimi... |
Total downloads: | 4 520 |
Active installs: | 200+ |
Click to start download
|
Screenshots
Additional optimize column added to media listing. You can see your savings, or manually optimize individual images.
Bulk optimization page. You can optimize all your images at once. This is very useful for existing blogs that have lots of images.
FAQ
Installation Instructions
- Install littleutils on your Linux server (step-by-step instructions are below).
- Upload the \’wp-image-optimizer\’ plugin to your \’/wp-content/plugins/\’ directory.
- Activate the plugin through the \’Plugins\’ menu in WordPress.
- Navigate to the settings page (Media >> WP Image Optimizer) to optimize your files
- Done!
Installing littleutils: Ubuntu 16.04 LTS (64-bit)
These instructions were tested with littleutils 1.0.27 and Ubuntu 16.04 LTS (64-bit).
Please note : If you install littleutils 1.0.37 without installing 1.0.27 before, images optimization process may encounter issues.
- sudo apt-get update
- Download littleutils 1.0.27 : sudo wget http://downloads.sourceforge.net/project/littleutils/littleutils-source/1.0.27/littleutils-1.0.27.tar.bz2
- Install dependencies : sudo apt-get install gifsicle pngcrush lzip libpng12-0 libpng12-dev libjpeg-progs p7zip-full
- Uncompress littleutils : sudo tar jxvf littleutils-1.0.27.tar.bz2 && cd littleutils-1.0.27
- Configure and install littleutils : sudo ./configure –prefix=/usr && sudo make && sudo make install && sudo make install-extra
- Then you can upgrade littleutiles to 1.0.37 : sudo wget http://downloads.sourceforge.net/project/littleutils/littleutils-source/1.0.37/littleutils-1.0.37.tar.bz2
- Uncompress littleutils : sudo tar jxvf littleutils-1.0.37.tar.bz2 && cd littleutils-1.0.37
- Configure and install littleutils : sudo ./configure –prefix=/usr && sudo make && sudo make install && sudo make install-extra
Installing jpeg-recompress: Ubuntu 16.04 LTS (64-bit) (Needed for lossy optimization)
Install mozjpeg dependencies first
- sudo apt-get update
- sudo apt-get install build-essential autoconf pkg-config nasm libtool git gettext libjpeg-dev -y
Build mozjpeg, the latest tar.gz can be found here which you can replace below in the wget line.
- cd /tmp
- wget https://github.com/mozilla/mozjpeg/archive/v3.3.1.tar.gz -O mozjpeg.tar.gz
- tar -xf mozjpeg.tar.gz
- cd mozjpeg
- autoreconf -fiv
- ./configure –with-jpeg8 –prefix=/usr
- make
- sudo make install
Install jpeg-recompress with these commands, make sure you have the bzip2 package.
- sudo apt-get install bzip2
- cd /tmp
- wget https://github.com/danielgtaylor/jpeg-archive/releases/download/2.1.1/jpeg-archive-2.1.1-linux.tar.bz2 -O jpeg-archive.tar.bz2
- tar -xf jpeg-archive.tar.bz2
- sudo cp jpeg-recompress /usr/bin/jpeg-recompress
- sudo chmod 755 /usr/bin/jpeg-recompress
(re)Install jpegtran
- sudo apt-get install libjpeg-turbo-progs
Can I use WP Image Optimizer with a Windows server?
No, WP Image Optimizer only supports Linux.
Do I have to have littleutils?
Yes, WP Image Optimizer will not work if littleutils isn\’t installed. This plugin expects opt-jpg, opt-png, and opt-gif to be in the PATH.
Do I have to have jpeg-recompress?
Jpeg-Recompress is not mandatory but lossy jpeg optimization won\’t work if it isn\’t installed
ChangeLog
1.1.5.1
- Delete cron job when disabled
1.1.4
- Conditionnal script loading
- Plugin is now translatable
- Various fixes
1.1.3
1.1.2
- UI improvments
- Queries optimizations
1.1.1
- Added cron task option to resize 250 unoptimized images / hour
1.1.0
- Lossy Compression for jpeg files
- Optimized ajax and php for bulk resize, now supports bulk optimization of 200k + medias at once
1.0.1
- Removed unnecessary frontend files
- Readme updated
1.0.0