Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot

Docker service that creates a monochrome .bmp image of a given webpage url.
This makes it easy to show content on an e-paper display, for example the reTerminal E1001.
To show the screenshot on the reTerminal E1001 use this Arduino sketch.

Build the docker image using the Docker file, and then start it using docker compose up.

To create a screenshot of a webpage, use it like this:
http://localhost:port/screenshot?url=http://example.com

The image can then be fetched by the e-paper display using:
http://localhost:port/last.bmp

All parameters:

Parameter Description Type Default value
?url= The url of the webpage to take a screenshot of. This is a mandatory parameter. string -
&width= The width of the viewport. number 800
&height= The height of the viewport. number 480
&scale= The scaling of the viewport. number 1
&fullPage= Use the full page for the screenshot. boolean false
&dithered= Toggle dithering on or off. boolean false
&contrast= The contrast of the image. When no dithering is used, this is the threshold value between black and white. number 65
&inverted= Inverts the colors of the image. boolean false
&useTag= Take a sceenshot of a specific element on the website. Use .className for classes and #idName for id's. string -
&removeTag= Remove an element from the website before taking the screenshot. (For example a cookie banner) string -

About

Docker image to create a monochrome bmp image of a webpage

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages