Jump to content

What is the most efficient way to copy image from external site


stevesimo

Recommended Posts

Hi, I am attempting to write a script which downloads a copy of specified auction listings from a well know auction site.  It downloads a copy of the html page and associated images using the item number of the listing.  Although the code which I am using works, it is slow as it has to recreate the images once they are downloaded.  Also I have noticed that the images once recreated appear to be slightly larger than the original ones on the auction site.  I tried to use CURL but I think that the auction site have disabled this functionality on their server as all I kept getting was a message saying that the file had moved to another location although the underlying link I was using was correct.

 

Here is my code:

  $im = @imagecreatefromjpeg($imageurl);
  imagejpeg($im,$filename);

 

Any suggestions would be much appreciated.

 

thanks, Steve (Blackpool, UK)

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.