offline
offline
is an optional property thats sets the offline mode of the page before taking the screenshot. By default, the offline mode is set to false
.
api/routes/screenshot.ts
const { UrlToImage } from '@url2image/sdk'
const { data, success, message } = await UrlToImage({
url: 'URL_TO_SCREENSHOT',
token: 'YOUR_API_KEY',
options: {
offline: true
}
})