question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proposal for a Screenshot-Capturing API in Browsers

See original GitHub issue

Hello 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?

  1. You could check out my very early draft and leave some comments and/or PRs.
  2. 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:open
  • Created 2 years ago
  • Reactions:16
  • Comments:7

github_iconTop GitHub Comments

1reaction
eladalon1983commented, Jul 27, 2021

In some situations, I think node capture API is more helpful, for example, document.body.captureAsImage() will return the image capture of body

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. 😃

0reactions
kuigecommented, Jul 27, 2021

In some situations, I think node capture API is more helpful, for example, document.body.captureAsImage() will return the image capture of body

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found