I need to make screenshot from specific DIV in HTML page. I tried to use this library - http://html2canvas.hertzen.com/
html2canvas($(".element"), {
onrendered: function(canvas) {
console.log(canvas.toDataURL('image/jpeg'));
}
});
But it has problems with some CSS stuff ( text-shadow for example ) and some texts are not looking good. and also picture seems a bit blurry.
Is there any other solution?
My DIV contains background picture, and texts on it. I considered using PHP GD library to open that background image and position texts on it, but there comes the text-shadow again, which i don't know how to do.
The CSS which makes text-shadow is like this:
text-shadow: 0px 1px 0px rgba(0,0,0,0.2);