We'll create fresh WordPress site with Slimage installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Slimage uses jpegoptim and optipng to compress your images during upload. It will compress the thumbnails that WordPress generates but will leave the original file intact, so that you can safely restore your changes if necessary.
The plugin will also allow you to manually set the compression level and quality on a per-image basis. That way you have absolute control on how much quality you are willing to sacrifice in order to achieve better performance improvements, which can be handy if you want to pass the Google PageSpeed test.
Using it in conjuction with the wp media regenerate
command of WP-CLI or with some thumbnail regeneration plugin, you can bulk optimize your photos and even experiment until you find the combination of quality/size that suits you.
To use the plugin you need to have jpegoptim
and optipng
installed on your server and make sure that PHP shell_exec()
function isn’t disabled in your php.ini
.