What is a good command line tool to create screenshots of websites on Linux? I need to automatically generate screenshots of websites without human interaction. The only tool that I found was khtml2png, but I wonder if there are others that aren’t based on khtml (i.e. have good JavaScript support, …).
Share
A little more detail might be useful…
Start a firefox (or other browser) in an X session, either on your console or using a vncserver. You can use the
--heightand--widthoptions to set the size of the window to full screen. Another firefox command can be used to set the URL being displayed in the first firefox window. Now you can grab the screen image with one of several commands, such as the ‘import’ command from the Imagemagick package, or using gimp, or fbgrab, or xv.