title: Is NodeJS Image Processing/Analysis Possible?
body: <p>I'm running <code>NodeJS</code> on the server-side, and I'm trying to do a bit of automated image processing to determine the 'base colour' of an image.</p>
  
  <p>Here are the steps of what I want to do:</p>
  
  <ol>
  <li>Take an image (on a remote server, so passed through with a URL) and get its dimensions</li>
  <li>Use dimensions to calculate the centre of the image</li>
  <li>Take a 10px x 50px (WxL) rectangle around the centre-point</li>
  <li>Get the RGB value for each of these pixels (500 per image)</li>
  <li>Output the average value of the pixels</li>
  </ol>
  
  <p>I know such things are possible in PHP, but I'd like to use Node is possible. I've seen tutorials on using <code>Node-imagick</code> for basic processing (like resizing and cropping) but don't know where to start with more advanced analysis like this.</p>
  
  <p><strong>Questions</strong></p>
  
  <p>(a) Is this possible with Node?</p>
  
  <p>(b) What libraries will allow me to do this?</p>