PHP Classes

What is the best PHP HTML text to image conversion class?: Convert HTML text to image

Recommend this page to a friend!
  All requests RSS feed  >  What is the best PHP HTML text to ima...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

What is the best PHP HTML text to image conversion class?


Picture of Uday by Uday - 8 years ago (2014-12-22)

Convert HTML text to image

This request is clear and relevant.
This request is not clear or is not relevant.


I would like to render a given HTML code as an image.

  • 1 Clarification request
  • 1. Picture of Gerry Danen by Gerry Danen - 8 years ago (2014-12-26) Reply

    Please give an example of what you like to do.

    • 2. Picture of Bordeux by Bordeux - 8 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 -> in JavaScript, or use phantomJS in server side.

Ask clarification

1 Recommendation

WebThumbnail: Capture a screenshot of a page using WebThumbnail

This recommendation solves the problem.
This recommendation does not solve the problem.


Picture of Manuel Lemos by Manuel Lemos Reputation 22875 - 8 years ago (2014-12-26) Comment

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