Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2474
  • Last Modified:

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?
1 Solution
try cutycapt :


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

cutycapt --url=http://www.google.com --out=google.jpg

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now