title: Node.js GraphicsMagick not working ( Invalid Parameter - -resize)
body: <p>I am trying to use <a href="https://aheckmann.github.io/gm/" rel="nofollow noreferrer">Graphics Magick</a> to resize an image. I have installed the latest <a href="http://www.graphicsmagick.org/download.html" rel="nofollow noreferrer">GrapchicsMagick</a> and <a href="http://www.imagemagick.org/script/download.php" rel="nofollow noreferrer">ImageMagick</a> versions. I have installed</p>
  
  <pre><code> npm install gm
   npm install im
  </code></pre>
  
  <p>too. <strong>My node.js code is:</strong></p>
  
  <pre><code>  var gm = require('gm').subClass({imageMagick: true});
  
    var srcPath = __dirname + '\\' + userId + '.jpg';
    var dstPath = __dirname + '\\' + userId + '-thumbnail.jpg';
  
    gm(srcPath)
    .resize(100, 100)
    .noProfile()
    .write(dstPath, function (err) {
      if (!err) console.log('Image resized');
      else console.log(err);
    });
  </code></pre>
  
  <p><strong>I am getting this error:</strong></p>
  
  <pre><code> Error: Command failed: Invalid Parameter - -resize
  </code></pre>
  
  <p>I am using Windows 10 and I installed .exe and npm too.</p>