简体   繁体   English

完全加载后将div的内容转换为Image

[英]Convert a div's content to Image after it is fully loaded

Lots of searching but still couldn't get pass through this problem.很多搜索,但仍然无法通过这个问题。 I have a following div where a photo from facebook server is loaded using graph api.我有一个以下 div,其中使用图形 api 加载来自 facebook 服务器的照片。 I want a way to convert the content of div into image so that i could save it to server and upload it to facebook.我想要一种将 div 的内容转换为图像的方法,以便我可以将其保存到服务器并将其上传到 Facebook。 Please can anyone help me!!!请问谁能帮帮我!!!

<div>  
     <h1>My pic </h1>       
     <?php echo "<img src='https://graph.facebook.com/481032075371655/picture'>";?>             
</div>

Maybe this can help you.也许这可以帮助你。 html2canvas html2canvas

https://html2canvas.hertzen.com/examples.html https://html2canvas.hertzen.com/examples.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM