overlay
Type: <object>
It creates a beauty screenshot composition using a browser overlay over the target url.
- CLI
- JavaScript
- Shell
- Python
- Ruby
const mql = require('@microlink/mql')
const { status, data } = await mql('https://www.apple.com/music/', { screenshot: {overlay: {background: 'linear-gradient(225deg, #FF057C 0%, #8D0B93 50%, #321575 100%)', browser: 'dark'}} })
mql.render(data)An overlay is specified as
browser theme, being 'light'` and 'dark' supported.Additionally, you can setup a
background color, where the color can be defined as:- An hexadecimal/rgb/rgba color code (e.g.,
'#F76698'). - A CSS gradient(e.g.,
'linear-gradient(0deg, #330867 0%, #30CFD0 100%)'). - An image url (e.g.,
'https://source.unsplash.com/random/1920x1080').