Server: Download Image, Resize, Resave, Host, Repeat

Hello everyone. I’m new here, so my apologies if this is in the wrong section.

I’m looking for a way to have a server download four images off a website, resize and resave them, and host them as part of another website… Every five minutes.

One of my sites, RIGIC, shows four “webcam images” on the main page. These webcam images are JPEGs that the cameras capture and then upload to the webcam manager’s server (11,470 miles away). The images are refreshed every five minutes. I have these JPEGs linked from their server on my site, but I wan’t to be able to host the images myself so that they don’t need to load from the other side of the planet every time a user visits the site.

So, how can this be done? A script, perhaps?

Again, just to be clear, this is what I’m trying to accomplish:

  1. Server/computer downloads four images off of website #1.
  2. Server/computer resizes and resaves the images.
  3. Server/computer hosts the files for website #2.
  4. Repeat every five minutes.

There are many ways you could do this. You’ll need to be able to do some scripting though (or get help from someone who can script a bit).

As a starting point, do you know any PHP? Or Python? Or .NET? What OS/ server software does the server for website #2 use? (looks to be Apache and PHP)

I’m not qualified enough (yet) to write or modify any PHP, Python or .NET code, so I’d have to get help from someone who knows scripting.

Website #2 (RIGIC) is hosted on Media Temple. It is indeed Apache and PHP.