国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

javascript - To create a snapshot function, how to directly generate images from the html page?
高洛峰
高洛峰 2017-05-16 12:02:06
0
5
456

After reading many answers on the Internet, they all said to generate pdf first and then convert it into pictures, but I tried it. Generating pdf from html will mess up the page style, and then use imagick to convert pdf into pictures. I have always installed this extension. Unsuccessful, there is nothing in phpinfo(), so I would like to ask if there is a one-step method to directly convert the html page into an image?

高洛峰
高洛峰

擁有18年軟件開發(fā)和IT教學(xué)經(jīng)驗(yàn)。曾任多家上市公司技術(shù)總監(jiān)、架構(gòu)師、項(xiàng)目經(jīng)理、高級(jí)軟件工程師等職務(wù)。 網(wǎng)絡(luò)人氣名人講師,...

reply all(5)
巴扎黑

html2canvas.js

洪濤

It should be regarded as a screenshot. phantomjs can simulate the browser kernel. Of course, taking screenshots is not a problem. You can search for usage

迷茫

It seems that there is a program called dom-to-image.js, which converts dom nodes into base64 strings. You can check it

巴扎黑

You can use imagegrabwindow to take screenshots

黃舟

rasterizeHTML.js This one is much better than that html2canvas.js, go check it out

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template