Thumbnail Generator
This script is small function to generate thumbnail image in server. It is written in PHP. It has five parameters to describe image source, output path, height, width and quality. Just call the function with correct parameters to generate thumbnails of images in seconds!
Features:
- Upload the resizeImage().php in your server.
- Include the file in pages where you need to generate thubnails.
- include('resizeImage().php');
- Call the function with parameters correctlty to generate thumbs.
Parameter Details
$src = image to be resized
$out = added to filename to avid overwritting source image.
$path = where the image should be stored and accessed.
$w = resized width could be larger or smaller
$h = resized height could be larger or smaller
$q = Quality of thumbnail image, integer 1 to 100;
Sample Calling of function:
resizeImage('pic.gif','new_','images/', 120 , 90)
This function returns the path to thubnail image. So you can also use the returned value to show the thubnail image too.

