Options
Height

height

height is an optional property that allows you to set the page size of the screenshot. The default value is 720 pixels while Minimum value is 0 pixels, and the maximum value is 10,000 pixels.

api/routes/screenshot.ts
const { UrlToImage } from '@url2image/sdk'
 
const { data, success, message } = await UrlToImage({
    url: 'URL_TO_SCREENSHOT',
    token: 'YOUR_API_KEY',
    options: {
        height: 1080
    }
})

Height max or min value is ignored when the option fullPage is set to true.