RE: Find out a pic size?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi There,

You could also use the getimagesize(); function for this

<?php
$image=getimagesize(images/image01.jpg);
Echo"
<img src=\"image01.jpg" ".image['3'].">";
?>

This will give <img src="image01.jpg" width=" " height=" ">

Hope this helps

Best regards,
 
Davy Obdam
mailto:info@davyobdam.com


> -----Oorspronkelijk bericht-----
> Van: milisphp [mailto:milis@indoinformatika.com] 
> Verzonden: maandag 11 november 2002 7:38
> Aan: php-db@lists.php.net
> Onderwerp:  Find out a pic size?
> 
> 
> 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
> 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux