Options
Width

width

width is an optional property that allows you to set the page size of the screenshot. The default value is 1080 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: {
        width: 1920
    }
})