[PHP] GET IMAGE HEIGHT AND WIDTH
Hi all,
You need to get an image height and width in PHP? which normally use in passport or profile pictures…now try this code am going to give you.
1 |
<head> <br /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <br /> <title>PHP Get Image Dimensions</title> <br /> </head> <br /> <body> <br /> <?php <br /> list($width, $height) = getimagesize("images/banner.png"); <br /> echo "Width: " .$width." Height: " .$height; <br /> ?> <br /> </body> <br /> </html> <br /> |
Hope it works