title: Convert PDF to Image(s) with different resolution using ImageMagick
body: <p>I have to convert the pdf file (with more text) to images with different resolution.</p>
  
  <p>I am executing the following commands:</p>
  
  <p><strong>width:1024px</strong></p>
  
  <pre><code>convert -density 150 -antialias -resize 1024x -quality 80 "${inputFilePath}"  "${outputFilePath}"
  </code></pre>
  
  <p><strong>width:720px</strong></p>
  
  <pre><code> convert -density 150 -antialias -resize 720x -quality 80 "${inputFilePath}"  "${outputFilePath}"
  </code></pre>
  
  <p><strong>width:320px</strong></p>
  
  <pre><code>convert -density 150 -antialias -resize 320x -quality 80 "${inputFilePath}"  "${outputFilePath}"
  </code></pre>
  
  <p>The generated images are not clear. 
  Can you help me to understand what I have to change?</p>
  
  <p>Thanks in advance.</p>