Automatic thumbnail image resizing options
June 1, 2008 – 4:12 pm | by Miriam SchwabI manage a few blogs that use thumbnail images to spruce up the appearance of the site, and make it more enjoyable for readers. As we’ve discussed here in the past, an efficient method for adding thumbnails to your blog is with custom fields. But finding the right image, resizing it (ugh), uploading, etc., is such a pain in the neck that I often find myself not blogging because I can’t face it. On one of my blogs, I’ve just decided to post without the images, since I know it’s the only way I’ll ever publish anything.
So imagine my delight when I found the following two fantastic solutions: Justin Tadlock’s brilliant Get the Image WordPress plugin and Darren Hoyt’s TimThumb PHP Script. Both the plugin and the script take most of the annoying work out of inserting thumbnail images in your blog.
Justin Tadlock’s Get the Image plugin
This plugin works in three steps (as explained on Tadlock’s blog):
- It activates a script that gets an image either by custom field input or post attachment.
- Then it tells the script what the default image size should be. It tells the script to look for the WordPress-generated thumbnail if there are no custom field images found. You can use the values “thumbnail,” “medium,” or “full” for this (those are three image sizes WordPress generates).
- If there are no images found, the script displays a default image found at “/wp-content/my-image.jpg.”
As Justin says, this has a lot of potential applications - you can use to for feature images, for displaying images in your sidebar, etc. He even offers to help users implement the plugin on their blogs if they ask in his forums.
Darren Hoyt’s Tim Thumb PHP Script
Hoyt originally created this script for use in his Mimbo Pro premium WordPress theme. To use it, you need to complete two steps:
- Copy the source code into a new document called ‘timthumb.php’ and place it in a folder on your site (ex: /scripts/).
- Call the source code from the place in your theme files where you want the resized image to appear as follows:
<img src="/scripts/timthumb.php?src=/images/whatever.jpg&h=150&w=150&zc=1" alt="" />
This script is more complicated than Tadlock’s plugin, and when I tried it I couldn’t get it to work. But many people are happily using it in their themes.
Talk about filling a need. If you want to include thumbnail images on your blog without the headache, this plugin or script is a must.
Get The Image WordPress Plugin



5 Responses to “Automatic thumbnail image resizing options”
By Justin Tadlock on Jun 1, 2008 | Reply
Thanks for the link, Miriam. As you mentioned, it can be “such a pain in the neck” sometimes trying to spruce up your blog with a few extra images. After several months of using custom fields with my themes and hearing what users had to say about it, I finally decided to just put something together.
I keep meaning to try out Darren’s script at some point. It looks really promising.
By Darren Hoyt on Jun 2, 2008 | Reply
Equally, I’m looking forward to trying out Justin’s plugin. There does seem to be a clear need for better image-management solutions for Wordpress and I hope developers continue stepping in to fill that need with scripts and plugins of their own. I’d love to see some of these ideas incorporated into the WP core package one day.
BTW, Miriam let me know if you’re having any troubles with the script. There are ongoing weekly enhancements (see the Google Code page) which should fix most issues.
By Ryan on Jun 2, 2008 | Reply
Thanks Miriam, those plugins look really helpful.
Hopefully more themes will integrate this sort of functionality.
By Paul Orterto on Aug 5, 2008 | Reply
I found the (paid) Viva Thumbs solution from mediatricks.biz well worth the few bucks. Awesome support too from Tim and the team and it gives masses of flexibility including image reflection and unlimited sizes from one simple to embed function call in your theme pages.
By Miriam Schwab on Aug 6, 2008 | Reply
@Paul Orterto: Thanks for sharing! I’ll have to check it out.