vanleurth Posted March 30, 2011 Share Posted March 30, 2011 Hello happy codes, I have an image as such; http://storage.canoe.ca/v1/dynamic_resize/?src=http://www.torontosun.com/specialsections/2011/03/10/248x186_mb.jpg&size=40x30 getimagesize doesn't work with this image. Any ideas or links? I have looked through this site and can't find anyone having this problem. Am I missing something? Thank you, V. Link to comment https://forums.phpfreaks.com/topic/232133-getimagesize-function-doesnt-work-with-url-imagefile-ending-on-jpgsize40x30/ Share on other sites More sharing options...
QuickOldCar Posted March 30, 2011 Share Posted March 30, 2011 Your link works fine and the image does appear and is 40px × 30px Link to comment https://forums.phpfreaks.com/topic/232133-getimagesize-function-doesnt-work-with-url-imagefile-ending-on-jpgsize40x30/#findComment-1194072 Share on other sites More sharing options...
kenrbnsn Posted March 30, 2011 Share Posted March 30, 2011 Works fine for me: <?php $x = 'http://storage.canoe.ca/v1/dynamic_resize/?src=http://www.torontosun.com/specialsections/2011/03/10/248x186_mb.jpg&size=40x30'; $i = getimagesize($x); echo '<pre>' . print_r($i,true) . '</pre>'; ?> yeilds: Array ( [0] => 40 [1] => 30 [2] => 2 [3] => width="40" height="30" [bits] => 8 [channels] => 3 [mime] => image/jpeg ) Why do you say it doesn't work? Ken Link to comment https://forums.phpfreaks.com/topic/232133-getimagesize-function-doesnt-work-with-url-imagefile-ending-on-jpgsize40x30/#findComment-1194073 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.