Page 1 of 1

Fetch image from URL

Posted: Wed Aug 04, 2004 11:21 am
by mazmanr
Hello all,

I had a question regarding images and fetching them from a remote server. I have a JPG image that resides on a remote server and I"m trying to grab it & make a thumbnail of it & such. I was wondering if its possible to even do this, and if so, how would I go about it?


I already have the thumbnailing part done, there's no problem there, the only problem is fetching the image.


Thanks.

Posted: Wed Aug 04, 2004 11:26 am
by nigma
Yea it's possible.

If your using gd you can pass the url to imagecreatefromjpeg() and things should work.

Code: Select all

$im = imagecreatefromjpeg("url");

Posted: Wed Aug 04, 2004 11:41 am
by mazmanr
Interesting...That's what i thought it was but I heard somewhere that it doesn't work.


I'll give it a shot & I'll get back to you. THanks.

Posted: Wed Aug 04, 2004 12:23 pm
by mazmanr
Just an update. I got it to work just fine :) Simple stuff.


Thanks again nigma.