niranjnn01 Posted October 30, 2008 Share Posted October 30, 2008 Hello, I want to get the dimensions of an image using the function getimagesize which is in a different server than mine. i have got the URL to that image. How can i get fetch this information.? - Will i have to fetch the image using CURL and then use the image, or - Is there any other means to remotely access only the detais of the image , without actually bringing the whole image to my server?. Kindly help me Link to comment https://forums.phpfreaks.com/topic/130707-solved-remote-image-handling-curl/ Share on other sites More sharing options...
ratcateme Posted October 30, 2008 Share Posted October 30, 2008 the way i have found most php functions work in order to do what you want you would have to retrieve the whole image. list($x,$y) = getimagesize("http://url/to/image.jpg"); could work if you could understand the jpeg formate you could do it your self and going through the binary file to get all the size info out of it. but i think in order to get the top you would still have o get the entire image. Scot. Link to comment https://forums.phpfreaks.com/topic/130707-solved-remote-image-handling-curl/#findComment-678278 Share on other sites More sharing options...
niranjnn01 Posted October 30, 2008 Author Share Posted October 30, 2008 It worked!!... Thank you soo much scot!!!... I badly wanted this ... Thanks again! Rakesh Link to comment https://forums.phpfreaks.com/topic/130707-solved-remote-image-handling-curl/#findComment-678282 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.