| Recommend this page to a friend! | 
| All requests  | 
> | What is the best PHP HTML text to ima... | > | Request new recommendation | > | > | 
 by Uday - 10 years ago (2014-12-22)
+2  | I would like to render a given HTML code as an image.  | 
1. 
 by Gerry Danen - 10 years ago (2014-12-26) Reply
Please give an example of what you like to do.
2. 
 by Bordeux - 10 years ago (2014-12-26) in reply to comment 1 by Gerry Danen Comment
In clear PHP is too hard to write HTML renderer. You can use webkit.js -> trevorlinton.github.io in JavaScript, or use phantomJS in server side.
0  | 
 Doing this in pure PHP is hard. I am not sure if there are good solutions for this. What you can do is to use this package like this to call a Web API that can capture images of Web pages. Then you create a page that serves the HTML that you want to render as image and pass the URL of that page to the API class.  | 
| Recommend package | |
| 
 |