siwelis Posted May 13, 2007 Share Posted May 13, 2007 //Get image $file = "http://www.chexed.com/images/logos/chexedtop.gif"; //Get size list($width, $height) = getimagesize($file); //See if get size worked echo $width; //Just a test echo $file; -------------- For some reason it wont get the width of that image but DOES echo "http://www.chexed.com/images/logos/chexedtop.gif"... I've been working on this for 3/4 days... Does anyone know why it's not getting the width? Quote Link to comment https://forums.phpfreaks.com/topic/51236-solved-getting-an-image-width/ Share on other sites More sharing options...
toplay Posted May 13, 2007 Share Posted May 13, 2007 Have you tried to get the width for a jpeg? Note: Some formats may contain no image or may contain multiple images. In these cases, getimagesize() might not be able to properly determine the image size. getimagesize() will return zero for width and height in these cases. Quote Link to comment https://forums.phpfreaks.com/topic/51236-solved-getting-an-image-width/#findComment-252395 Share on other sites More sharing options...
siwelis Posted May 13, 2007 Author Share Posted May 13, 2007 I will try now and let you know in less then 2 minutes and 30 seconds. Quote Link to comment https://forums.phpfreaks.com/topic/51236-solved-getting-an-image-width/#findComment-252399 Share on other sites More sharing options...
siwelis Posted May 13, 2007 Author Share Posted May 13, 2007 You are a Global Moderator Genius! Quote Link to comment https://forums.phpfreaks.com/topic/51236-solved-getting-an-image-width/#findComment-252401 Share on other sites More sharing options...
siwelis Posted May 13, 2007 Author Share Posted May 13, 2007 Thank you! (And I assume this is due to the GD Library version problems). Do you know if that is the only thing which could cause this? Quote Link to comment https://forums.phpfreaks.com/topic/51236-solved-getting-an-image-width/#findComment-252406 Share on other sites More sharing options...
siwelis Posted May 13, 2007 Author Share Posted May 13, 2007 I'm not sure why I'm not getting the height with version 2 GD Library, or if I'm even using it... I'm solving this topic though because my original question was answered. Thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/51236-solved-getting-an-image-width/#findComment-252412 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.