Re: [PHP] function to resize images

2005-02-28 Thread Richard Lynch
Bosky, Dave wrote: > Does anyone have a nice function that will resize an uploaded image to > specific width/height dimensions? Not a function, per se, but I use this script: $height){ $scale = $target/$width; } else{ $scale = $target/$height; } if ($scale < 1){ $w = round($s

Re: [PHP] function to resize images

2005-02-28 Thread Andre Dubuc
On Monday 28 February 2005 10:34 am, Bosky, Dave wrote: > Does anyone have a nice function that will resize an uploaded image to > specific width/height dimensions? > > I wanted to find something that would work for only GIF and JPG image > types. I've converted my shopping cart > > application fro

Re: [PHP] function to resize images

2005-02-28 Thread Robby Russell
On Mon, 2005-02-28 at 10:34 -0500, Bosky, Dave wrote: >Does anyone have a nice function that will resize an uploaded image to >specific width/height dimensions? > >I wanted to find something that would work for only GIF and JPG image types. >I've converted my shopping cart > >application from Cold

Re: [PHP] function to resize images

2005-02-28 Thread Frank Arensmeier
Dave! I would start by reading the PHP manual. Look for a function called 'imagecopyresized()'. This might help. /frank 2005-02-28 kl. 16.34 skrev Bosky, Dave: Does anyone have a nice function that will resize an uploaded image to specific width/height dimensions? I wanted to find something that