Jump to content

[SOLVED] Remote image handling - CURL?


niranjnn01

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.