I have installed CutyCapt on my Linode VPS and using it to generate screenshots by following command.
xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=http://www.google.com --out=example.png
Its working great as expected. The only problem is what if the page can be scrolled vertically (ie. greater than 768 in height)? The screenshot will be chopped in that case. One possible solution is to take a longer height of screen (say, 2000), and then remove the white space from bottom. But that won't be an optimal solution.
Can someone suggest me a better solution?