Image compression allows you to save disk space, traffic, and speed up your website for visitors. Below is a list of some useful plugins to compress images in WordPress.
All mentioned plugins are in the official directory WordPress.org, and distributed free of charge under the GPL. Despite this, some of them use external paid services for image compression, or paid versions of the plugin with additional functionality, which can be distributed under other licenses.
The WP Smush plugin was developed by WPMU DEV, and uses an external service to compress images. Immediately after activation, the plugin offers to compress all existing files in the library, and also begins to automatically compress new uploaded images. At the time of writing, this plugin has more than 400 thousand active installations.
Please note that the free version of the plugin has some limitations, such as the maximum file size to compress only 1 megabyte, compression of several images only 50 pieces at a time. The paid version can be purchased with a WPMU DEV subscription for $49 per month.
EWWW Image Optimizer uses optipng, pngquant, jpegtran, and other free utilities to effectively compress images in WordPress. These utilities are included in the plugin distribution as executable files and run by the plugin through the PHP exec () function, which many hosting providers have disabled for security reasons.
There is also a paid version of EWWW Image Optimizer Cloud, which, like WP Smush, uses an external service for compression and optimization, which is more compatible with hosting sites and does not create additional load on your server. The cost of compression is 0.5 cents per image for the first 1000 pieces.
Initially, TinyPNG appeared as an online service and API for developers, allowing to compress PNG images. Then, the developers of TinyPNG created a version for JPEG images, and plugins for WordPress and Magento allowing to automatically compress all uploaded images using their online service.
For the plugin to work enough to get the API key from the site TinyPNG. It allows you to compress up to 500 images per month for free, which is usually enough for 100 WordPress media files, taking into account all the thumbnails. Paid API access starts at $0.009 per image.
The Resize Image after Upload plugin automatically reduces the size of uploaded images in WordPress, and saves them instead of the original ones. This allows you to significantly save disk space for those who often use files from digital cameras, the size of which reaches 20 MB or more.
Don't forget to increase the maximum file size if you want to upload large images to your WordPress library.
Short Pixel Image Optimizer is a plugin and service for compressing images in WordPress. The free plan includes compression of up to 100 images per month, and does not differ in compression quality from the paid versions that start at $5 for 5000 files per month. The plugin also allows you to restore the originals at any time.
Kraken Service.io features high speed and very good image compression quality, both with loss of quality (lossy) and without (lossless). Their plugin integrates the service with the WordPress library, makes it easy to compress new and existing images.
The free version of this plugin/service allows you to test it only within the quota of 100 megabytes. Paid subscriptions start at $5 for 500 megabytes per month.
Imagify is a service from the creators of the popular WP Rocket caching plugin, and integrates well into WordPress. The Imagify trial has a quota of 25 megabytes, paid subscriptions from $5 per 1 Gigabyte of data per month, which according to the developer is enough for about 10,000 images.
It is also worth mentioning that some hosting and CDN providers, or reverse proxies (e.g. CloudFlare, Incapsula, etc.) automatically compress the transmitted images and other files on the fly.