Re: getting the width and height of a images
| From: | Rasmus Lerdorf | Date: | Thu, 27 Jul 2000 06:32:55 +0000 |
| Subject: | Re: getting the width and height of a images | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8480@lists.php.net to get a copy of this message | ||
Actually, getimagesize() is not part of GD and will work even if you don't
have GD support in your PHP install.
-Rasmus
On Wed, 26 Jul 2000, Chris Adams wrote:
> > I'm using <input type=file .... the let a user upload a picture. when
> > submitting the form I check the size and the file type(since I only want
> gif
> > or jpg)
> > this is working all fine. But I want to write the height en width in the
> > database table as well as the size and the file name I gave it.
>
> Look at GetImageSize from the GD extension
> (http://www.php.net/manual/function.getimagesize.php). I believe that will
> do everything you mention but you will need to have the GD extension
> included in your PHP installation.
>
>
>