Proposal for a Screenshot-Capturing API in Browsers
See original GitHub issueHello all,
I’m one of the developers working for Chrome. I’m drafting a proposal for introducing an API to allow grabbing a screenshot. (This would probably cover some of the use cases html2canvas
solves, but not all, as it will require manual user confirmation, which IIUC html2canvas
does not require.)
How can you help?
- You could check out my very early draft and leave some comments and/or PRs.
- When the time comes to ship this, if consensus cannot be reached with other browser vendors (a decently likely outcome), the other option is to show overwhelming interest from web developers. If you register interest by leaving a comment either here or on my repo, that would be a good first step.
Thanks, Elad
Issue Analytics
- State:
- Created 2 years ago
- Reactions:16
- Comments:7
Top Results From Across the Web
[Proposal] Screenshot API - WICG
Proposal for an API that let create an image from an HTML element. ... Otherwise, Google uses in-browser screenshot (by a library) to...
Read more >Using the Screen Capture API - MDN Web Docs
In this article, we will examine how to use the Screen Capture API and its getDisplayMedia() method to capture part or all of...
Read more >Screen Capture - W3C
This document describes an extension to the Media Capture API ... A browser display surface is the rendered form of a browsing context....
Read more >Capture screenshot of browser content (website) [closed]
Awesomescreenshot will actually scroll down the page taking actual screenshots, then put those images together into one long image for you ...
Read more >ApiFlash: Website screenshot API
A free website screenshot API based on Chrome and AWS Lambda. Designed to be pixel perfect and massively scalable from the ground up....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Correct me if I am wrong, but this is a hypothetical API, and not an existing one? If so, you’re welcome to suggest it, implement it and drive standardization of it, but I am afraid you’ll find it easier said than done. But preferCurrentTab is already implemented and Chrome is a third of the way into approving shipping it. Better one bird in the hand than two on the tree, they say where I am from. 😃
In some situations, I think node capture API is more helpful, for example,
document.body.captureAsImage()
will return the image capture of body