WordPress Plugin :Custom image resize script by TimThumb PHP Script
Previous 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
Tweet
Delicious
Digg
Facebook
MySpace
Ping
Reddit
Stumble
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Related Posts
- WordPress Plugin :Custom image resize script by TimThumb PHP Script
- WordPress Plugin: Thumbnails images to your blog via Get the Image
- WordPress Plugin: flickrRSS allows you display your Flickr photos
- Website : You can earn million of dollar via million pixel script
- Website : Million Dollar Script part 2- Million Dollar Script
Leave a Reply













