Automate the creation of product screenshots effortlessly with the overlay and device option for screenshots. See Screenshot options for all available device and screenshot options.

Example

import Doczilla, { ScreenshotOptions, ScreenshotOverlay } from '@doczilla/node'

const doczilla = new Doczilla('<your token>')

const screenshot = await doczilla.screenshot.direct({
  page: {
    url: 'https://doczilla.app'
  },
  screenshot: {
    device: ScreenshotOptions.device.MACBOOK_PRO_13,
    overlay: {
      background: "linear-gradient(135deg, #17BCE0 0%, #17E286 100%)",
      browser: ScreenshotOverlay.browser.DARK,
      margin: 0.2
    }
  }
})

Output