title: Take a full page screenshot with Firefox on the command-line
body: <p>I'm running Firefox on a Xvfb in a VPS. What I want to do is to take a full page screenshot of the page.</p>
  
  <p>I can redirect Firefox to particular page using</p>
  
  <pre><code>firefox http://google.com
  </code></pre>
  
  <p>and take a screenshot (inside X) using ImageMagick</p>
  
  <pre><code>import root -window output.jpg
  </code></pre>
  
  <p>The problem is, most of the page need scrolling and I can't know the height beforehand.</p>
  
  <p>The other way is to pick a very big height (like 4000px) and then process the image and remove the useless part. But that's unnecessary processing.</p>
  
  <p>I found many Firefox add-ons, but I'm looking for a solution that can be programmed using the Shell Command line.</p>
  
  <p>Edit: I ended up writing my own <a href="https://github.com/omarabid/CmdShots" rel="noreferrer">FireFox extension</a> for doing this.</p>