javascript - Convert a div to image without canvas -


i need generate image corner ribbon, musn't image since text inside changes. once it's generated, need div (the image + ribbon) saved image, i'm not able html2canvas because don't have images, have link (and saving them take time). there method?

an answer similar question generated interesting fiddle. think adapt use.

it's essentually javascript:

$(function() {      $("#btnsave").click(function() {          html2canvas($("#widget"), {             onrendered: function(canvas) {                 thecanvas = canvas;                 canvas.toblob(function(blob) {                     saveas(blob, "dashboard.png");                  });             }         });     }); }); 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

c++ - Clock_gettime() function outputting incorrect time -

asp.net core mvc - How important is the global.json and src folder? -