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?

Edit

Picture of Uday by Uday - 10 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.

+2

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

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

    Please give an example of what you like to do.

    • 2. Picture of Bordeux 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.

Ask clarification

1 Recommendation

WebThumbnail: Capture a screenshot of a page using WebThumbnail

This class can capture a screenshot of a page using WebThumbnail.

It can send a HTTP request to the WebThumbnail API Web server to request the capture of a screenshot of a given URL.

The service will queue the request to capture the specified page screenshot using one of the supported browsers: Firefox, Google Chrome or Opera.

The screenshot image may be capture with sizes between 70 by 70 and 2048 by 4096 pixels.

The class polls the capture server to determine when the screenshot is ready to download.

The retrieved screenshot image can be copied to a local file or served for download as the current script output in the PNG, JPEG or GIF formats.
This recommendation solves the problem.
This recommendation does not solve the problem.

0

Picture of Manuel Lemos by Manuel Lemos Reputation 26695 - 10 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
: 
: