Eduard Climov
Eduard Climov

Reputation: 193

How to save div as image without additional libraries?

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

Answers (2)

Mistalis
Mistalis

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

Nick Bull
Nick Bull

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

Related Questions