Posted by Martin Jay on 05/15/06 21:32
In message <2g2ag.23$EA.22@fe03.lga>, robert
<ab@no.spam-alama-ding-dong> writes
>| Try inserting the following where you want the picture to be display:
>|
>|
>| <?php
>| $image = ; // image location and filename
>| $name = ; // name of person
>|
>| $size=getimagesize($image); // set the dimensions of image
>| ?>
>|
>| <img src="<?php echo $image; ?>" alt="<?php echo $name;?>" <?php echo
>| $size[3]; ?>">
>oh martin! again with the helpful advice. by default, MOST browsers display
>an image with it's normal size...so your "advice" is STILL less than useful.
>one typically specifies size when one wants to control the size either
>larger/smaller than the original.
I've cross-posted this to alt.html.
My advice would be the opposite of yours: include image width and height
in the img element, and don't use them to change the size of an image.
--
Martin Jay
Navigation:
[Reply to this message]
|