+ 2
Is there any way, we can download a div as an image?
I want a method to download a div (text and image in it) as an image.
11 ответов
+ 1
To demo lib indicated by ꧁Sᴏᴜᴘᴛɪᴋ Nᴀᴛʜ꧂
Run from pc to save image file.
https://code.sololearn.com/WBWk4iF6AING/?ref=app
+ 3
https://github.com/tsayen/dom-to-image
Hope This Helps.
+ 3
Calviղ Dont know why but the image is faded from the original dom.
What is blob?
+ 2
꧁Sᴏᴜᴘᴛɪᴋ Nᴀᴛʜ꧂ blob is image data blocks for saving image.
+ 1
JME Thanks but I want to know if there is any way in code.
+ 1
Calviղ Thank You
+ 1
꧁Sᴏᴜᴘᴛɪᴋ Nᴀᴛʜ꧂ Thank You
0
take a screenshot
0
In google search dom to image
0
hi so you cute
- 1
Use this syntax, but use a different image name in src because I have used a random image name for example.
<div>
<img src="xyz.jpg" width=400 height=400 alt="my image" >
</div>