There is not much information here. What OS are used? How is "remote" the source site? What format are the images already in?
If another site is deleted (i.e. another hosting company), the main problem that you will encounter is the speed with which the source server can transfer data to your computer.
One big question, though, is "what image format at the moment?". If the images are already JPEG, then obtaining and subsequent conversion to JPEG will again reduce the quality (albeit slightly). It would be best to just copy the image file directly. This will reduce the time your PHP application spends on re-encoding JPEGs. Ask yourself: do you really need convert images?
Depending on which OS commands you have, it may be better for you to disable applications that handle the transfer (for example, wget on Linux). I used wget to retrieve files from a remote server to a local one, and it is not that hard to run.
Remember - the more steps you have in transmitting, the longer it will take to act. At the moment you have:
- Search
- transformations
- spelling
everything is handled by PHP (possibly from the slowest to the fastest)
Does source source provide archive or export access for clients? If so, can this be used for mass file transfer?
By taking as much as possible from PHP, the process will speed up. Calling system functions (e.g. wget , ftp , ssh , imagemagick , etc.) will make everything faster (outside of PHP and Apache)
source share