title: Error: Command failed: gm convert pdf-image conversion
body: <p>I am trying to convert pdf to images in node.js app. For that I am using <code>pdf-image</code> npm module.</p>
  
  <p>I googled it and installed <code>pdf-image</code> npm module and <code>graphicsmagick</code> using <code>apt-get install graphicsmagick</code> in linux os.</p>
  
  <pre><code>let pdfImage = new PDFImage("./file.pdf",{graphicsMagick: true,convertOptions: {
              "-resize": "2000x2000",
              "-quality": "75"
            }}); 
          pdfImage.convertFile().then((imagePaths)=&gt;{
              console.log(imagePaths)
              cb(null,imagePaths)
          },(err)=&gt;{
              cb(err)
          });
  </code></pre>
  
  <p>In my local system its working fine and perfect.
  But when I deployed this to my <code>AWS ec2</code> instance  and installed all required libraries but its throwing error </p>
  
  <pre><code>gm convert: Coder did not return an image (this is a bug, please report it!)
  </code></pre>
  
  <p>I am doing the same as local in ec2 instance but its not working.</p>