Re: image dimentions
| From: | steve bissonnette | Date: | Thu, 11 Apr 2002 15:26:02 +0000 |
| Subject: | Re: image dimentions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92592@lists.php.net to get a copy of this message | ||
I believe you want this,
http://www.php.net/manual/en/function.getimagesize.php
<?php
$size = GetImageSize ("path/to/your/image");
?>
<img src="path/to/your/image" <?php echo $size[3];?> >
on 4/10/02 1:11 AM, Steve Klugherz at steve@tommiehouse.com wrote:
> Is there anyway to gather image dimentions from a gif or a jpg file? I need
> to gather this information from user uploaded files and can not trust the
> user to enter them correctly. Any ideas?
>
>
--
s t e v e b i s s o n n e t t e
steve@plankdesign.com
PLANK. A multi-faceted-media company.
http://www.plankdesign.com
v. 514.875.0003 f. 514.875.7611