I’m always on the look out for ways in which to reduce the load time of my various sites. I use several methods to drive down the overhead of pages on this site and have experimented with lots of tools over the last few years. One of the heavier aspects of my sites has always been the images. It can be quite time consuming to edit images so that they are fully optimised (especially without a loss to quality) prior to using them, so I’ve been looking for ways to automate the process.
Yahoo run a web service that allows you to optimise images called Smush It. Whilst this takes the need for a good quality image editor out of the equation, on its own it requires a level of user interaction. Thankfully, a developer in the WordPress community (the platform on which this site runs) has coded a plugin that automatically smushes all images uploaded to the media component of your blog. I first came across the plugin WP-Smushit several months back; however if you download and install it (at the time of writing) it won’t work. Sure, it’ll install; however whenever images are submitted to the smush it API the process errors out.
I did some digging around the time I first found the plugin and found that the reason for failure was simple. Yahoo kept moving the API server, so as soon as the developer updated the plugin, it’s location was moved. There were several suggestions to fix the plugin in the threads, but none worked for me. In the past few days I’ve revisited the plugin and done further digging into the problem. Yahoo have now acknowledged the plugin author and realised that people were wanting to use the tool. They have since decided upon the API’s home however the plugin author hasn’t updated their plugin.
You can have the benefits of the plugin working if you follow these simple instructions:
1. Download the plugin from the WordPress hosted page here
2. Extract the plugin to you computer
3. Open the folder and then open the file wp-smushit.php in Notepad or another standard text editor.
4. Find the section titled:
5. Replace the following code
6. Save the file
7. Upload the plugin folder to your WordPress installation
8. Activate the plugin
From here on in all images uploaded to WordPress will be automatically smushed. If you wish to smush existing content in your media library, browse to the Media Library and smush each image in turn by clicking “Smush it”. (Found in the last column of the library table).
On this site alone, I reduced image size by an average 15%. Â Add up all those images you have on your site and it makes a difference to page load times. Â If you’ve got a WordPress site, this plugin is invaluable.API, image, optimise, optimize, smush, smush it, Yahoo