How to render HTML as an image in PHP?

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?
Who is Participating?
try cutycapt :

it can render an html page as jpeg, png, pdf, svg using the command line, for example :

cutycapt --url= --out=google.jpg
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.