title: graphicsmagick - convert images to pdf and vice versa
body: <p>I want to shift from <code>imagemagick</code> to <code>graphicsmagick</code></p>
  <p>But I encounter some issues with the syntax</p>
  <h1>With imagemagick</h1>
  <p>First I need to merge some images into a PDF</p>
  <p><code>convert -density 300 page_*.tif output.pdf</code></p>
  <p>And then I need to create a thumbnail of the first page of the PDF</p>
  <p><code>convert -density 300 file.pdf[0] -background white -alpha remove -resize 140x140 -strip -quality 40 thumb.jpg[0]</code></p>
  <p>This works fine.. But I want to switch the first command to <code>graphicsmagick</code></p>
  <h1>Width graphicsmagick/imagemagick</h1>
  <p>The graphicsmagick syntax here works fine</p>
  <p><code>gm convert -density 300 page_*.tif output.pdf</code></p>
  <p>But when creating the thumbnail with <code>imagemagick</code> the output has the right size but the acutal image is downsized inside the image itself?!</p>
  <h1>Thumbnail with imagemagick</h1>
  <p><a href="https://i.stack.imgur.com/hTUIw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hTUIw.jpg" alt="enter image description here" /></a>
  <a href="https://secure.dyndev.dk/data/voucher/30000/400/30435_eb7e5d0a9df71b2783e2fa89efd9de12fcdb9679.pdf" rel="nofollow noreferrer">https://secure.dyndev.dk/data/voucher/30000/400/30435_eb7e5d0a9df71b2783e2fa89efd9de12fcdb9679.pdf</a></p>
  <h1>Thumbnail with graphicsmagick</h1>
  <p><a href="https://i.stack.imgur.com/J5sS8.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/J5sS8.jpg" alt="enter image description here" /></a>
  <a href="https://secure.dyndev.dk/data/voucher/30000/400/30433_7710d6404534b0868ab8da41dd651e971b70e16b.pdf" rel="nofollow noreferrer">https://secure.dyndev.dk/data/voucher/30000/400/30433_7710d6404534b0868ab8da41dd651e971b70e16b.pdf</a></p>