简体   繁体   中英

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. 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. 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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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