Free stuff: TimThumb add-on for our Book and Retro wordpress themes

TimThumb is a small php script created by Darren Hoyt for custom cropping, zooming and resizing web images (jpg, png, gif). It was first created for Mimbo Pro but since last April it is available as an open-source project! It’s already being used on lot’s of projects so I have decided to integrate it into my wordpress themes.

A lot of you have problems with thumbnail images on blog pages because of html image tags that have to be inserted in custom fields. This script will put a smile on your face.

What is the difference?

A pictures says more than 1000 words:

timthumb_old

timthumb_new

How do I set thumnail size of images?

I added a custom settings page under “Appearance -> Theme Options”:

timthumb_settings

Just be careful with these values. You should always upload images larger than entered values.

How do I install this addon?

I prepared ZIP document that contains 4 files you need to copy to your Book Template or Retro v2.0 theme. Two of those files are new but two of them need to replace older versions.
I suggest you backup all your files before installing this addon.

TealGray Retro Theme v2.0 TimThumb addon
Book Template TimThumb addon

Some important things to note:

  • TimThumb requires the GD library, which is available on any host sever with PHP 4.3+ installed.
  • Once installed and in-use, TimThumb will automatically create a /cache/ subfolder with proper write-permissions. If your host server doesn’t allow this by default, be sure to manually change the /cache/ folder permissions to 777.
  • In addition, make sure the folder which contains TimThumb is set to 777.