papaface Posted December 30, 2006 Share Posted December 30, 2006 Hello,How would I go about getting the height of a remote image. For example how would i get the height of this image?http://www.veronaonline.com/vpl/images/reader.gifI looked into imagesy() but i got this error:Warning: imagesy(): supplied argument is not a valid Image resourceregards Link to comment https://forums.phpfreaks.com/topic/32322-solved-height-of-a-remote-image/ Share on other sites More sharing options...
AndyB Posted December 30, 2006 Share Posted December 30, 2006 [code]<?php$img = "http://www.veronaonline.com/vpl/images/reader.gif"; // your remote image$size = getimagesize($img);echo $img. " is ". $size[1]. " by ". $size[0]. " pixels";?>[/code] Link to comment https://forums.phpfreaks.com/topic/32322-solved-height-of-a-remote-image/#findComment-150113 Share on other sites More sharing options...
papaface Posted December 31, 2006 Author Share Posted December 31, 2006 Thanks :) Link to comment https://forums.phpfreaks.com/topic/32322-solved-height-of-a-remote-image/#findComment-150157 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.