screenshot-website | GitHub Action to capture screenshots | Continous Integration library
kandi X-RAY | screenshot-website Summary
kandi X-RAY | screenshot-website Summary
:camera_flash: A GitHub Action to capture screenshots of a website, across Windows, Mac, and Linux
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of screenshot-website
screenshot-website Key Features
screenshot-website Examples and Code Snippets
Community Discussions
Trending Discussions on screenshot-website
QUESTION
The important part is to take the screenshot
- exactly as the user sees the browser window. This rules out canvas-based questions and answers, which emulate the browser but cannot exactly replicate how it renders html and css
- without any non-standard plugins outside of plain, standards-compliant html5 and JS. This rules out Java applets, Flash, ActiveX, and kindly asking the user to press the "print-screen" button to then paste the image into a form.
I came across several questions on stackoverflow addressing this (see above), but did not find any answer that fulfilled both conditions. Instead of trying to add a partial answer for existing questions with slightly different requirements, I am asking this in a separate question instead.
I have so-far found a great explanation on how to acquire and stream pixels from a any window into a video
element, using the Screen Capture API. However, I am missing the next step, where those pixels that are being displayed in a video element are converted into a jpg
or png
file that can be uploaded to a server.
ANSWER
Answered 2019-Apr-03 at 13:26This is simpler than it seemed. The missing part, saving a still shot of the video to png, can be achieved with code from this answer. The complete code would be as follows:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install screenshot-website
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page