Jump to Content

RSS Feeds:

Posts | Comments

http://ivanwlam.com/experiments/programming

Leave a Reply


Example

CoHo Calendar

width (index 0) is: 585
height (index 1) is: 435
image type (index 2) is: 3
text of w/h (index 3) is: width="585" height="435"
mime (index 'mime') is: image/png
channels (index 'channels') is:
bits (index 'bits') is: 8

CoHo Calendar

"; echo "height (index 1) is: $size[1]
"; echo "image type (index 2) is: $size[2]
"; echo "text of w/h (index 3) is: $size[3]
"; echo "mime (index 'mime') is: $size[mime]
"; echo "channels (index 'channels') is: $size[channels]
"; echo "bits (index 'bits') is: $size[bits]
"; ?>

PHP in Example

 <p><img src="http://www.ivanwlam.com/images/portfolio/ucdCoHo/calendar1.png" alt="CoHo Calendar"/></p>  <?php    $size=getimagesize("http://www.ivanwlam.com/images/portfolio/ucdCoHo/calendar1.png");  echo "width (index 0) is: $size[0] <br />";  echo "height (index 1) is: $size[1] <br />";  echo "image type (index 2) is: $size[2]<br />";  echo "text of w/h (index 3) is: $size[3] <br />";  echo "mime (index 'mime') is: $size[mime] <br />";  echo "channels (index 'channels') is: $size[channels] <br />";  echo "bits (index 'bits') is: $size[bits] <br />";    ?>