timthumb for image resizing

Download timthum.php script and upload to your site. We are uploading to root of a site in a folder called /scripts/(ex: www.example.com/scripts/). You also need to create a folder “cache” inside of scipts.(ex: www.example.com/scripts/cache/) The cache folder needs read/write permissions.

The image we want to resize is called balloon.jpg located in www.example.com/images/

Create a .html page and place this code inside the body tags:

<body>
<img src="scripts/timthumb.php?src=/images/balloon.jpg&h=150&w=150&zc=1" />
</body>

Thats it! See a working example here.

 

One Response to “timthumb for image resizing”

  1. Carrie says:

    A very good script to have! Thanks for sharing!

Leave a Reply