Re: getting the width and height of a images
| From: | gfunk007 | Date: | Thu, 27 Jul 2000 04:16:03 +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-8471@lists.php.net to get a copy of this message | ||
getimagesize()
http://au.php.net:81/manual/function.getimagesize.php
-Gfunk
[-= Visit my website! http://www.gfunk007.com/ - ICQ:74477509
=-]
----- Original Message -----
From: Dan <dan@savage-comedy.com>
To: 'Jeroen Olthof' <webmaster@smurf.eu.org>; <php-general@lists.php.net>
Sent: Thursday, July 27, 2000 2:14 PM
Subject: RE: [PHP] getting the width and height of a images
> Since the width and height are not required for the image tag, I'd omit
> them.
>
> It slows down the browser but I can't think of an easy way to grab the
image
> attributes.
>
> > -----Original Message-----
> > From: Jeroen Olthof [mailto:webmaster@smurf.eu.org]
> > Sent: Thursday, July 27, 2000 12:26 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] getting the width and height of a images
> >
> >
> > hi,
> >
> > for those who awserd my other question about creating a
> > images. thanks ,
> > that works now. (I should have looked better in the big
> > manual,cause it is
> > there. I didn't know that fopen try's to create the file if
> > it is not yet
> > there.)
> >
> > but here is the new problem, And I hope I look the manual
> > hard enough so
> > that nobody can say, "look the manual there and there".
> >
> > 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.
> >
> > the variable come with a <input type=file name=picture_data>
> > are automaticly
> > picture_data_name
> > picture_data_size
> > picture_data_type
> >
> > once I found a array where the width and height where in, but
> > I don't know
> > what it was : (.
> >
> > so I need to know the picture width and height so I can store this
> > information in a database.
> > who can fresh up my memory?
> >
> > kind regards
> > Jeroen Olthof
> > (from holland)
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>