Unzip/tar the compressed file, and then cd to the khtml2png directory.
Type "./configure --help" (without quotes) at command line to check for any help information.
Type "./configure && make && make install" (again without quotes) to do a default install.
Note: you need system privileges to do this type of thing.
Although
this link deals with GIMP, it might help you.