{"type":"rich","version":"1.0","provider_name":"Transistor","provider_url":"https://transistor.fm","author_name":"Programming Tech Brief By HackerNoon","title":"How To Take Screenshots In The Browser Using JavaScript","html":"<iframe width=\"100%\" height=\"180\" frameborder=\"no\" scrolling=\"no\" seamless src=\"https://share.transistor.fm/e/99028ebd\"></iframe>","width":"100%","height":180,"duration":487,"description":"\n        This story was originally published on HackerNoon at: https://hackernoon.com/how-to-take-screenshots-in-the-browser-using-javascript-l92k3xq7.\nTaking screenshots in-browser (or 'client-side') is all about tradeoffs - there's no perfect solution for every situation. Let's take a look at three different ways you can take screenshots, and then how you can use them by sending them to a server or letting the user download the image.\nCheck more stories related to programming at: https://hackernoon.com/c/programming.\n            You can also check exclusive content about #javascript, #feedback, #html, #screenshots, #chrome-browser-extension, #web-development, #javascript-development, #good-company, #hackernoon-es,  and more.\nThis story was written by: @James_BugHerd. Learn more about this writer by checking @James_BugHerd's about page,\n            and for more stories, please visit hackernoon.com.\nHow To Take Screenshots In The Browser Using JavaScript is all about tradeoffs - there's no perfect solution for every situation. There are three ways you can automatically capture screenshots for your users. Using HTML2canvas for client-side screenshots is one of the most popular methods. Generate screenshots with getDisplayMedia - which is used as the screen sharing API. You can capture a still image from a video, which is essentially like screen sharing, like a screen sharing image, using JavaScript.","thumbnail_url":"https://img.transistorcdn.com/KhCapPSRkLGL2Xw8888yuChkNRWthaKapLYTvNdu4W4/rs:fill:0:0:1/w:400/h:400/q:60/mb:500000/aHR0cHM6Ly9pbWct/dXBsb2FkLXByb2R1/Y3Rpb24udHJhbnNp/c3Rvci5mbS9zaG93/LzQxMTY2LzE2ODM1/ODIzMzAtYXJ0d29y/ay5qcGc.webp","thumbnail_width":300,"thumbnail_height":300}