Intense CPU strain....suggestions



I am writing YAPSS (Yet Another Photo Sharing Site).

Currently, the user can upload up to six pictures at once. When the
uploads are complete, I then have a script that will resize the pix to
different thumbnails for speed. However, imagine resizing 6 pictures
of 2300x2200 pixels in 6 different sizes (maintaining the best quality
I can) on a Pentium 3 450Mhz running Ubuntu and 384 megs of ram.

Seriously.

Obviously, this is a test server and the real deal will be more
powerful but I don't want my users sitting around waiting on
resizing. I would prefer to add the pictures to a queue for later
processing and allow the users to go do other things on the site.

My question is, how would you recommend I kick off this script and
allow the user to browse away? I've heard people suggest using an
iframe but that sounds kludgey. I've also considered using some type
of local XML-RPC server/client and have a script make a call. But
would the client then have to sit and wait for a response?

As you can see, I am on the planning stages at this point.

I do like the idea of having a server running waiting to accept resize-
requests. That way, he could easily be moved to dedicated hardware
later on.

Thoughts/opinions welcomed!

Thanks!

cbmeeks
http://www.signaldev.com

.



Relevant Pages

  • Re: Order form with javascript & php files will not work in FrontP
    ... Are you working local and publishing or live on the server? ... It's possible that editing your files local and then publishing is somehow ... > The script files are separate files from the actual form file. ... upload these files to my site ...
    (microsoft.public.frontpage.client)
  • IIS 6 shell
    ... The server is Running Windows Server 2003 and IIS 6 fully patched, ... in the application we have an upload form to upload pictures to the ... javascript support is also poor and the script did not run properly ... (except asp!) ...
    (Pen-Test)
  • Re: sanitizing uploaded data with a form
    ... i'm escaping quotes for the database, but i wasn't sure what other ... If the script is to display them, ... especially someone else on the server, if you use a shared server and ... configured, including, of course, the PHP upload script itself. ...
    (alt.php)
  • Re: sanitizing uploaded data with a form
    ... If the script is to display them, ... server and the admins allow PHP scripts to all run as the same global ... configured, including, of course, the PHP upload script itself. ... Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers ...
    (alt.php)
  • Someone help me adding things into this upload script
    ... Ok, i have an upload script and it works fine at the moment all good, ... If you are on a WINDOWS server, ... This script must be called using a form. ... sub psjs_upload { ...
    (comp.infosystems.www.authoring.cgi)