Thumbnail code that will do an entire directory at once

From: Date: Mon, 09 Jul 2001 21:37:20 +0000
Subject: Thumbnail code that will do an entire directory at once
Groups: php.general 
Request: Send a blank email to php-general+get-57012@lists.php.net to get a copy of this message
i wrote a little subroutine to make a directory full of images into thumbnails... it'll make thumbnail images of a specified height and width and properly resize the original image to preserve the height to width ratio. the syntax of make_thumbs() is this: make_thumbs($imagedir, $thumbsdir, $size, $quality, $border); imagedir = original images are in this dir thumbsdir = thumbnails will be saved in this dir size = height and width for the generated thumbnails quality = quality of JPG output: worst(0..100)best border = how thick of a border to put around the image. to see some samples of thumbnails that it's created, and get the code, go here: http://www.furt.com/code/make_thumbs/

« previous php.general (#57012) next »