WordPress Plugin :Custom image resize script by TimThumb PHP Script
April 1st, 2010 by ytechcityPrevious post regarding to WordPress Plugin: Thumbnails images to your blog via Get the Image, which is useful for magazine style themes, and allow you thumbnails images for your blog. Today, i will share with you a greatful php script (TimThumb PHP Script) written by Tim McDaniels as a way to achieve the core functionality of phpthumb while using half the code. Ben then added PNG and GIF support, plus improved speed and caching.
![]()
How do I use it?
Simply copy the source code into a new document called ‘timthumb.php’, place it in a folder on your site (ex: /scripts/) and call the image like this:
<IMG alt="" src="/scripts/timthumb.php?src=/images/image_name.jpg&h=150&w=150&zc=1" >
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.
•As in the example, use absolute paths for your script and images
TimThumb allows the following parameters:
•w: width
•h: height
•zc: zoom crop (0 or 1)
•q: quality (default is 75 and max is 100)
Official Website:
http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/
Download:
http://timthumb.googlecode.com/svn/trunk/timthumb.php












