How can i render an image from the string which contains html tags?
Hello everyone I have an obstacle, I hope someone can help me! I want to generate an image from the string which contains html tags: div, h1, img ... with .css styles applied.
Can it be done with php
I'd like to generate an image automaticaly and store in the folder in order to visualize it then on the page. Is it possible to generate during the page load?
E开发者_如何学JAVAxample of the image:
Maybe there are othe ways to build the image, I'd like to know.
Example: Suppose I have the following html tags:
<div class="mybox">
<div class="mybox_title"> My Box </div>
<div class="imgbox"><img src="myimage.png" alt="myimage"></div>
</div>
I'd like to convert it into image.
Please have a look at HTML2Canvas, which should fullfill your needs.
精彩评论