Website Thumbnail & Screenshot Generator written in Go with using Chrome DevTools Protocol.
Click to try a live demo. NOTE: Fonts may appear bold due to heroku chrome buildpack.
- Generating the Website Screenshots & Thumbnails.
- Set the custom width, height and quality values of the screenshot.
- Ability to scroll the page on the Y axis.
- Set the background and customize the background color of the screenshot.
- Delete the elements you do not want from the screenshot with the sensitive selector.
- Add the Chrome UI to images with backgrounds.
- Fullscreen page screenshot.
- Allowing custom height and width adjustments for images with backgrounds.
for
/screenshot
Endpoint
Parameter | Type | Default | Description |
---|---|---|---|
url | string | - | URL of the website that will generate the screenshot |
width | int | 1920 | Width of the screenshot |
height | int | 1080 | Height of the screenshot |
quality | int | 100 | Quality of the screenshot |
bgColor | string | #000000 | Background color if available (If value is #000000 (default) means the no background) |
scrollY | int | - | Is the pixel along the vertical axis (Y) |
hide | string | - | Selectors of elements to be hidden |
-
First, install repository
git clone https://github.com/anilmisirlioglu/thumbnail-server && cd thumbnail-server
-
Then, run it.
go run .
-
Finally, enter localhost address from your browser.