Getting image width and height using PHP
In Coding we are getting size of image using function getimagesize. it is get width and height of given object.Coding
<?php list($width, $height, $type, $attr) = getimagesize("C:\wamp\www\Batista.jpg"); echo "Image width <br/>" . $width."<br/>"; echo "Image height <br/>" . $height."<br/>"; echo "Image type <br/>" . $type."<br/>"; echo "Attribute <br/>" . $attr."<br/>"; ?> |
0 comments:
Post a Comment