| 
	
 | 
 Posted by cbmeeks on 05/30/07 21:11 
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
 
  
Navigation:
[Reply to this message] 
 |