Khtml2png is a command line utility that converts HTML files into PNG images. It is based on the KHTML rendering engine and is useful for taking screenshots of complex webpages or applications. It is widely used for automated testing and for creating graphical representations of webpages. It supports a variety of command line options for controlling the size and quality of the output image. It can also be used to convert multiple HTML files into a single multi-page PNG image. It is available for Linux, Mac OS X, and Windows platforms.
Discontinued The program is no longer updated. The latest version, v0.5.4, released in October 2014, can still be downloaded from the official website.