title: how to crop to square thubmnail using gm for node.js
body: <p>trying to figure out how to crop to square using graphicmagick for node.js with imagemagick , but how do I pass the ^ flag to the thumbnail method so that it crops</p>
  
  <p>var gm = require('gm')
      .subClass({imageMagick: true}); // Enable ImageMagick integration.</p>
  
  <pre><code>gm(inPath).thumb('200','200^').scale('5%').scale('2000%').write(outPath, function(err, results){
  
      if (err) console.error(err);
      console.log(results);
  });
  </code></pre>