Re: Limit image height/width on upload
| From: | joe at jwebmedia dot com | Date: | Fri, 12 Jan 2001 15:09:50 +0000 |
| Subject: | Re: Limit image height/width on upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34245@lists.php.net to get a copy of this message | ||
Specifically getimagesize() - You'll get an array with element 0 as the
width and 1 as the height. Just test it after it's uploaded and either keep
it or throw it out.
Joe
Jason Murray wrote:
> > Is there a way to limit the image size with php?
>
> You would have to use some image manipulation functions to look at the
> file once it's been uploaded.
>
> Jason
>
> --
> Jason Murray
> jasonm@melbourneit.com.au
> Web Design Team, Melbourne IT
> Fetch the comfy chair!
>
> --
> 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