[nodejs] Re: Good practice to resize images?

2012-02-05 Thread Angelo Chen
Hi Felix, Thanks for the reply, the app is only for a local network, not to be in the public net, need only a simple solution. your kue idea is good, if i understand it correctly, there will be two node apps: 1) the node web app that accepts file upload, then send over to #2 2) node/kue based

[nodejs] Re: Good practice to resize images?

2012-02-05 Thread Dobes
How the queue is managed is up to you, really. You could run a queue server like redis, rabbitMQ, etc. or even use a shared folder on NFS that you rename files into and out of. If there's only ever one worker machine you probably skip setting up a separate message queue server and just manage

[nodejs] Re: Good practice to resize images?

2012-02-05 Thread Angelo Chen
Hi, Thanks to all who answered my newbie's question, it helps me finally implemented a working solution, all suggestions are correct, what I do is: use coffee-resque to convert one image at one time, it works quite well in a old Pentium 4 box, and the program is still very responsive, learnt a

Re: [nodejs] Re: Good practice to resize images?

2012-02-03 Thread Mark Hahn
nice is a linux command that lets you run any other command with a controlled execution priority. http://linux.about.com/library/cmd/blcmdl1_nice.htm We don't use a node module, we spawn the linux task ourselves with spawn or exec. However, it you look at the source code for node-imagemagick it