Div or html to image (alternative to html2canvas)
css, html, javascript, jquery
Solution
See if this DOM-to-Image works for you - https://github.com/tsayen/dom-to-image
It's a library written in JavaScript which can turn arbitrary DOM node into a vector (SVG) or raster (PNG or JPEG) image.
Problem
I did my homework and search several times how to make a "screenshot" of a div or any element on html. html2canvas works nice but I have problems with: - The quality of the image generated. - If the div have images stored on other domains. - Some elements like rounded divs (inside de main div) are generated squared. Is there any alternative? Don't discard paid alternatives. Thanks!!!