twitter facebook dribbble email


Careful! This post is looking a little old and could be inaccurate in many, many ways

OK, so isn’t actually broken but when Yahoo took over the company it’s most useful feature appeared to vanish.

When was first released a user was able to insert the top level domain of a website and have crawl the entire site and CSS files for images to optimise. When Yahoo took over the only ways to optimise images are to do it page by page or upload a maximum of 5 images at a time. Both these options are far from ideal.

What to do

The solution is so simple, I’m not sure why it took me so long to figure it out. If the best you can do is use the YSlow plugin to smush images displayed on a single page then all that is required is for that single page to be created to display all the images within a website.

Initially this may sound like a big job, but you don’t need to write out the html for every image in the site, instead creating a .php file and adding the code below will do the job for you.

Essentially the code looks into a specified folder and outputs what it see’s. In a folder full of images it’s a case of outputting this information into and img tag and then using to optimise them all.

This reduces the task of using back to the 5 minute job it always should have been.