Re: getting the width and height of a images
| From: | Chris Adams | Date: | Thu, 27 Jul 2000 00:00:09 +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-8444@lists.php.net to get a copy of this message | ||
> 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.