simple REST service to capture snapshots from html pages
- scaling (pixelScaleFactor)
- view port offset (offsetX,offsetY)
- dimension (width, height)
- format (png,jpg,gif,bmp)
docker: nort3x/jwebrender
cli:
# map port 8080 to your desired port
# cli:
docker run -p 7878:8080 nort3x/jwebrender
compose:
version: "3.5"
services:
jwebrender-service:
image: nort3x/jwebrender
ports:
- "7878:8080"
restart: always
Path | Description |
---|---|
/swagger | swagger console |
/html | render html content and take snapshot |
/url | render url and take snapshot |
it's a naive combanition of JavaFX
and SpringBoot
on your request it renders content in JavaFX WebView
engine
for running in headless mode (which it doesn't) it will create a virtual display docker with gtk libgl1-mesa and xvfb