We have seen many themes in WordPress have the capability to resize images without having to do it manually. TimThumb is a PHP Script script released by Darren Hoyt which can resize images to your desired size on the fly without having to manually resize it. With this script, you can easily resize images by just calling the script with the parameter (height and width) and it returns the resized image.
How to use the script?
1. Simply copy the source code into a new document called ‘timthumb.php’, place it in a folder on your site server in any folder or create a new folder called scripts
2. Call the image like this in the following format
<img src=”/scripts/timthumb.php?src=/images/whatever.jpg&h=150&w=150&zc=1″ alt=””>
Here replace whatever.jpg with the image name you want to resize and also use your desired size and height.
Parameters accepted by this script;
- w: width
- h: height
- zc: zoom crop (0 or 1)
- q: quality (default is 75 and max is 100)
More information on this script available here. You can also check out a live demo of the script in action.
Good tip! thanks, I recently moved to wordpress and needed to know about the Image management! this new script will surely be of great use.
you always help about new technology.
Nice. I currently use fastimageresizer and then upload images.
That seems to be useful on some occasions but not all…many times the images needs to be resized manually to make it look the way you want it to look and this boilerplate resize sometimes could mess-up the look and feel of the image if you pass-in the wrong width and height. It would be interesting if the script can resize it based on a percentage.
Use http://www.ezyimageresizer.com to batch resize images in the browser (runs as a java applet)
It was rather interesting for me to read the article. Thank author for it. I like such themes and anything that is connected to them. I definitely want to read a bit more on that blog soon. BTW, rather good design you have here, but what do you think about changing it every few months?
Whitny Karver