2010년 8월 25일 수요일

[프로그래밍] Welcome to khtml2png


Welcome to khtml2png


khtml2png is a command line program to create screenshots of webpages. It uses libkhtml (the library that is used in the KDE webbrowser Konqueror). In khtml2png 2.0.5 to 2.5.0 "convert" from the ImageMagick graphic conversion toolkit is used to create the output files in various image file formats. 2.6.0 and future development will use the built-in conversion of the Qt library.


Features

There are two branches of khtml2png: An old 1.0.x branch containing the original code from Simon MacMullen (the former developer and maintainer of khtml2png) and a new 2.x done by the new maintainer Hauke Goos-Habermann. The branches have different features whereas 1.0.x is outdated and will not run correctly on newer KDE versions (newer than 3.2 if I remember correctly). The 2.6.0 release was improved very much by Florent Bruneau.

Take this table as a short feature overview:





































Feature 1.0.x 2.0.5 - 2.5.0 2.6.0 - newer
Scale output image
Works with KDE 3.2 and newer
Make screeshots longer than your screen height
Make screeshots wider than your screen width
Use a HTML element in the page to figure out the screenshot size
Different output file formats all supported by ImageMagick all supported by the system's Qt library






Requirements

For running and compiling you need some libraries and tools. You can find the Debian package names in braces.

  • g++
  • KDE 3.x
  • kdelibs for KDE 3.x (kdelibs4-dev)
  • zlib (zlib1g-dev)
  • cmake

Have fun!


댓글 없음:

댓글 쓰기