RE: [PHP] resizing an image
| From: | Liam dot Gibbs at dfait-maeci dot gc dot ca | Date: | Thu, 29 Aug 2002 13:48:24 +0000 |
| Subject: | RE: [PHP] resizing an image | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-114509@lists.php.net to get a copy of this message | ||
> Could someone show me some php that proportionally resizes an image?
> I'm collecting user sumbitted images and need them all to be within
> certain size constraints. What's the simplest, best way to do this?
Try out www.php.net/imagecopyresized or
http://www.php.net/manual/en/ref.image.php
if that doesn't do your job for
you.
Although these are valid functions, you'll need the GD extension or you'll
get error messages. Make sure you have this installed first.
> Sample code would be a huge help, as I'm a newbie and have not done
> anything with PHP image processing functions.
Fraid I can't help you here. Haven't developed any, although I'm sure it's
not hard, but I'm sure someone else can provide some.