[mediacapture-screen-share] capture screenshot of DOM (#145)

jimmywarting has just created a new issue for https://github.com/w3c/mediacapture-screen-share:

== capture screenshot of DOM ==
Hi, i would like a new API for taking screenshots of the DOM, but don't really know where to bring up this proposal...

- [html2canvas](https://github.com/niklasvh/html2canvas) is ok, but not grate.
- `getDisplayMedia` isn't ideal.
  - i don't want them to select another tab/screen/window
  - it requires a prompt.
  - requires manual slicing the image to what i want to take a picture of.
  - problematic to take screenshot to offscreen elements
  - requires a lot of code
  - down/up scaling renders the image less accurate (text became blurry)

---

Chrome on the other hand have some handy dev tools built in, that I would like to use on my website for eg: submitting a feedback form.

![Skärmavbild 2020-08-11 kl  19 15 53](https://user-images.githubusercontent.com/1148376/89927805-2ad97e80-dc07-11ea-963c-1266cef93a1f.png)

- it's useful for taking a snapshot of the hole page that are not even in viewport
- it can take screenshot of a single DOM node and discard the rest.
- it gives a more accurate picture that don't downscale/resize
- don't involve canvas, video capture, frame rates, parsing and rebuild a representation of the page on canvas

I so did wish this functionalities from chrome devtools became exposed as some API that we developer can use.

Please view or discuss this issue at https://github.com/w3c/mediacapture-screen-share/issues/145 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 11 August 2020 17:48:26 UTC