I've looked through various such tools, but none of them are to be used in Linux:


  • 1
    in the question you only mention Linux but in your comments below you ask for something that works on Windows. please clarify what platform you need this tool to run on. – quack quixote Apr 24 '10 at 10:41

Try wkhtmltoimage from wkhtmltopdf (check the downloads) Its great tool and ASAIK works on windows.


KHTML2PNG does that for Linux, using the KHTML rendering engine. We're using it in headless mode on servers.

  • Can it work in windows?Because I develop in windows. – user11671 Feb 6 '10 at 11:50
  • 3
    The title said you were searching for a Linux tool though... – raphink Feb 6 '10 at 12:45
  • Yes,the build is on linux.But dev is on windows. – user11671 Feb 6 '10 at 17:47
  • @user11671: What? Rewrite your question to explain exactly what you are looking for. – CarlF Apr 28 '11 at 16:22
  • Link shows abandoned project. Pls fix the link, probably project hosted somewhere else. – mrtipale Oct 4 '19 at 11:20

There is an Add-on for Firefox called Screengrab that places an icon in the browser status bar. Not command line, but either Linux or Windows, and handy.

  • Screengrab also places an entry in your context menu so you can right-click in the browser and select screengrab. – John T Nov 24 '10 at 2:01

We use wkhtml2pdf which is a static build of the Webkit rendering engine (as used by Safari, Chrome et al.) and generates a PDF. Not quite a JPEG/PNG screenshot, but it serves a different purpose for us. (As an added bonus, you can still copy the original text as-is.)

It works on Linux, OS X and Windows.


ImageMagick which also works on Windows, Linux and Mac OSX can to this with the following command (code stolen from my Fluxbox menu)

import screenshot.jpg && display -resize 50% screenshot.jpg
  • I get the following error: import.im6: unable to open X server ' @ error/import.c/ImportImageCommand/368.. Plus, where do you specify the URL? – starbeamrainbowlabs Nov 16 '14 at 20:26

There is an addon for firefox called Pearl Crescent that has command line access:https://addons.mozilla.org/en-us/firefox/addon/pagesaver/?src=collection&collection_id=23ccef22-af27-4a82-806a-568db8935e21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.