On Wed, May 27, 2009 at 5:56 PM, Keith Lofstrom <[email protected]> wrote:
> Are there any open source tools out there that can render an html > page to a png (or other) image, automatically? Yes, I know you > can display the page on a screen, then screen capture the image, > but I am looking for something I can automate, perhaps as a script > that spiders a directory. > > I'm working on a navigable web presentation tool, makeshow. > http://www.server-sky.com/makeshow > It builds a series of PNG images into a slide show (a PNG image > is very hard to mis-render - what you see is what you ALWAYS > get). There are tools, such as Eric Wilhelm's Text::Slidez, > which turn a text script into html pages, and I would like to > take the outputs of such tools and make PNG images. > > Any suggestions? > > Keith Anything that can render a webpage to a png must have behind it the whole rendering engine and so is subject to what that rendering engine can render. There is a program that uses webkit to convert html to pdf http://code.google.com/p/wkhtmltopdf/ Then you can use several tools to go from pdf to png such as the pdfimages utility in xpdf-utils. Bill _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
