SV: [PHP-DB] Find out a pic size?
| From: | joakim dot andersson at cybercom dot se | Date: | Mon, 11 Nov 2002 07:56:02 +0000 |
| Subject: | SV: [PHP-DB] Find out a pic size? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-23201@lists.php.net to get a copy of this message | ||
> Hi,
>
> I'm working with a lot of picture in a website and the size is not
> always the same.
>
> I need some help on how to find out the size (width and height) of a
> picture. Is there any way to do this (especially with PHP)?
>
> I need it so I can calculate the width and height to be
> specified on the
> HTML <img> tag.
>
> Thanks,
>
> Hansen
> IndoInformatika
Did you try the manual at all?
GetImageSize() is what you're looking for.
Regards
Joakim