Is a state-less micro service to render a preview image of an URL.
50K+
You can test out the service in simple browser by calling for example http://localhost:2341/?url=http://google.com when running on localhost. As you see it you just give the URL to render as a parameter 'url' (for production use make sure url parameter value is URLencoded). This will return a rendered image of the given URL.
The size of the rendered image is 1024 × 768. You can use the parameter scale to make a bigger (e.g. 1.5) or a smaller image (e.g. 0.5).
You can also get the rendered image data back as a BASE64 encoded string. For this option add the pameter value base64=true to the url. For example http://localhost:2341/?base64=true&url=http://google.com. The returned image is a PNG. So if you want to use the BASE64 string as inline img src data in a HTML page add a data:image/png;base64, in front of the service result.
DONT RUN SERVICE ON HTTPS - its all public data, no screts involved. Redirect Load Bouncing will not work with HTTPS.
docker run -d --name web-screenshot -p 2341:2341 rootzoll/web-screenshot
Content type
Image
Digest
Size
327.5 MB
Last updated
over 9 years ago
docker pull rootzoll/web-screenshot