Generate image from html with php

Julien Ducro picture Julien Ducro · Jul 15, 2011 · Viewed 24.2k times · Source

For some security reasons, I would like to generate an image based on Google Calendar embed iframe, to be able to show it on a website who don't allow iframes.

Is there any php library to create an image from html?

The script have to be executable on a linux server.

Answer

Julien Ducro picture Julien Ducro · Jul 15, 2011

The library wkhtmltoimage works perfectly.

I have created a page to embed the google calendar (the url can't be reach directly).

I generate a picture from this page and I link this image on my profile on the website.

Thanks heaps for the comments.