Looking to say "http://example.com/index.html -o website.png"

Is there an existing program to do this? I'm ok with doing html to png. Is there a program for that?

  • Do you want webpage screenshots? – PENDO May 7 '11 at 12:02
  • @PENDO yes screenshots. @Mohamed Meligy looking to script something in the shell. – keith May 7 '11 at 12:15
  • If you want to "script something in the shell" then you need a command-line application to do it, and @Mohamed Meligy's comment still applies. – pavium May 7 '11 at 12:21
  • I think you need a html to pdf and image converter. – user117055 Feb 6 '12 at 17:06

TL;DR; Try wkhtmltopdf.org

Original Answer: (2011 -- before question tags added)

Check the answer to this question. It seems the same as yours: https://stackoverflow.com/questions/125951/command-line-program-to-create-website-screenshots-on-linux

If it's on Windows, check also:

Updated Answer:

A few other console / terminal based tools that can convert HTML to images.

They are both cross OS, free, and very popular.

  • 1
    phantom is no longer maintained, I think wkhtmltoimage is the best solution. It might be good to revise this answer to make wkhtmltoimage more prominent. – styfle Feb 15 at 19:34
  • Good point. Done. – Meligy Feb 18 at 6:12

quick search turns up this program

Main features

  • Create full size screenshots of website pages.
  • Supports JPG, GIF, PNG, BMP image formats.
  • Supports command line usage.
  • Supports batch convert with command line.
  • Simple, very fast and easy-to-use.
  • Freeware, not paid for use.

While it is no direct solution, the browsershots project is open source and basically provides what is requested here.

Your Answer

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