as-a-service / html-to-svg

svg screenshot of web pages (saves the given URL to an SVG file)

Home Page:https://html-to-svg.as-a-service.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Saves the given URL to an SVG file

A simple web service that saves the given URL to an SVG image.

Run with docker run -p 8080:8080 gcr.io/as-a-service-dev/html-to-svg

Run on Google Cloud

API

URL parameters:

  • url: The URL of the website to capture
  • (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 html-to-svg
  • Start with docker run -p 8080:8080 html-to-svg
  • Open in your browser at http://localhost:8080/?url=https://steren.fr

CloudBuild

About

svg screenshot of web pages (saves the given URL to an SVG file)

https://html-to-svg.as-a-service.dev/

License:Apache License 2.0


Languages

Language:JavaScript 65.0%Language:Dockerfile 35.0%