Reputation: 193
My question may be simple:
Is there a way to save div content as an image(jpg) without additional libraries like "html2canvas" ?
Thank you in advance!
Upvotes: 2
Views: 1283
Reputation: 18279
As far as I know, you can't do this without a library.
Anyway you can see several questions on StackOverflow dealing with this subject, if you want to avoid Canvas: 1, 2.
Upvotes: 1
Reputation: 9866
Simply put, no. There's no native way to capture an element as an image without some third-party script.
HTML2Canvas is also very robust and quite lightweight, apart from errors when handling SVG images!
Upvotes: 5