Skip to content

as-a-service/screenshot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Run on Google Cloud

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 800

Example: /?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

CloudBuild