capture div as png info
- A
div
element and its elements can be captured as Portable Network Graphic (PNG) using JavaScript (JS) and Cascading Style Sheet (CSS). - Libraries for that are
html2canvas
,dom-to-image
, andhtml-to-image
. - The goal can be also achived using print and screenshot.
- Note: This solution has not yet been tested.
- Update: It is tested on 25b16 .