I need to make a thumbnail images of HTML documents as they would display in a browser on-the-fly with PHP. For example, index.php would read the contents of mywebsite.html, render the HTML code and create an exact image of how it would look in Mozilla. Then I need to shrink that image to thumbnail size.
Is there any existing options for such a thing? If not, what would be the best direction to start in towards developing it on my own?