RE: [PHP] image size
| From: | o dot cook at etoncollege dot org dot uk | Date: | Sat, 09 Sep 2000 11:03:49 +0000 |
| Subject: | RE: [PHP] image size | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-15982@lists.php.net to get a copy of this message | ||
Look at the imagesx() and imagesy() functions.
http://www.php.net/manual/function.imagesx.php
http://www.php.net/manual/function.imagesy.php
You will need to have compiled PHP with gif/png/jpeg support with GD to be
able to use those functions I think.
Ollie
--------------------------------------------
Ollie Cook +44 (7946) 057 198
PGP: http://ollie.zenox.dhs.org/pgp-key
--------------------------------------------
> -----Original Message-----
> From: Shane McBride [mailto:php@riversidedesigns.net]
> Sent: 08 September 2000 21:39
> To: Php-General
> Subject: [PHP] image size
>
>
> When I load an image is their a way with php to check the
> image size (not file size, but dimensions) and reduce it is
> it falls outside a certain size, say 200pixels x 200 pixels?
>
> TIA,
> Shane
>