使用php生成图像 [英] Generate image from html with php
本文介绍了使用php生成图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
出于一些安全原因,我想生成一个基于Google日历嵌入iframe的图片,以便能够在不允许iframe的网站上显示该图片。
脚本必须在linux服务器上可执行。
解决方案
图书馆 wkhtmltoimage 的作品完美。
我已经创建了一个嵌入Google日历的网页(该网址无法直接到达)。
感谢大家的意见。
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.
解决方案
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.
这篇关于使用php生成图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文