pickachu Posted September 22, 2008 Share Posted September 22, 2008 Is it possible to get the size (width, height) of a linked image?? and how? link from a image hosting sites? Link to comment https://forums.phpfreaks.com/topic/125379-solved-getting-image-size/ Share on other sites More sharing options...
waynew Posted September 22, 2008 Share Posted September 22, 2008 $sizes = getimagesize("images/example.jpg"); $sizes is an array. $sizes[0] is the width. $sizes[1] is the height. Link to comment https://forums.phpfreaks.com/topic/125379-solved-getting-image-size/#findComment-648207 Share on other sites More sharing options...
DarkWater Posted September 22, 2008 Share Posted September 22, 2008 <?php list($width, $height) = getimagesize($url); Link to comment https://forums.phpfreaks.com/topic/125379-solved-getting-image-size/#findComment-648210 Share on other sites More sharing options...
pickachu Posted September 22, 2008 Author Share Posted September 22, 2008 wow.. thank you Link to comment https://forums.phpfreaks.com/topic/125379-solved-getting-image-size/#findComment-648211 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.