https://github.com/as-a-service/screenshot
Screenshot as a service: take screenshot of the given URL
https://github.com/as-a-service/screenshot
cloud-run-button container docker headless-chrome microservice nodejs
Last synced: about 1 month ago
JSON representation
Screenshot as a service: take screenshot of the given URL
- Host: GitHub
- URL: https://github.com/as-a-service/screenshot
- Owner: as-a-service
- License: apache-2.0
- Created: 2018-11-22T02:50:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:35:02.000Z (over 2 years ago)
- Last Synced: 2024-05-22T06:08:41.575Z (12 months ago)
- Topics: cloud-run-button, container, docker, headless-chrome, microservice, nodejs
- Language: JavaScript
- Homepage: https://screenshot.as-a-service.dev/
- Size: 47.9 KB
- Stars: 103
- Watchers: 2
- Forks: 25
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cloud-run - screenshot
README
# Takes a screenshot of the given page
A simple web service that takes screenshot of the given URL.
Run with `docker run -p 8080:8080 gcr.io/as-a-service-dev/screenshot`
[](https://deploy.cloud.run)
## API
### URL parameters:
* `url`: The URL of the website to screenshot
* (`width`): The viewport width (in pixels), defaults to 1280
* (`height`): The viewport height (in pixels), defaults to 800Example: `/?url=https://steren.fr`
## Running the server locally
* Build with `docker build . -t screenshot`
* Start with `docker run -p 8080:8080 screenshot`
* Open in your browser at `http://localhost:8080/?url=https://steren.fr`