title: how to get source path and destination path in imagemagick?
body: <p>I have uploaded photo.jpg to <code>C:/myapp/public/fullsize</code>. I want to resize this image and put it in <code>C:/myapp/public/thumb</code>. I do not know how to get <code>newPath</code> and <code>thumbPath</code></p>
  
  <pre><code> C:/myapp/
               server.js
               app/
                   myscript.js
               public/
                   fullsize/
                           photo.jpg
                   thumb/
  </code></pre>
  
  <p>In myscript.js</p>
  
  <pre><code> var path = require('path');
   var im = require('imagemagick');
   var imageName = path.basename(req.files.file.path); //photo.jpg
      var newPath =  ???;
      var thumbPath = ???;
      im.resize({
                    srcPath: newPath,
                    dstPath: thumbPath,
                    width:   200
                  }, function(err, stdout, stderr){
                    if (err) throw err;
                    console.log('resized image to fit within 200x200px');
                  });
  </code></pre>