RE: [PHP] Picture Width and Height in $_FILES
| From: | Wouter van Vliet | Date: | Tue, 02 Dec 2003 10:33:20 +0000 |
| Subject: | RE: [PHP] Picture Width and Height in $_FILES | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-171557@lists.php.net to get a copy of this message | ||
On dinsdag 2 december 2003 3:40 Dimitri Marshall told the butterflies:
> Hi there,
> I've seen the code somewhere but can't remember what it is exactly.
> Basically I need to know what the PHP is to get the picture
> width and height.
>
> I tried:
>
> $pic = $_FILES[$objectNumber];
> $width = $pic['width'];
> $height = $pic['height'];
>
> ... with no success.
>
> Any help is greatly appreciated.
>
> Thanks,
> Dimitri Marshall
There's this "getimagesize()" function, it will tell you everything about an
image that you need to know. Even who made it, if that's in the exif headers
:P.
Wouter