Skip to main content
Screenshotly supports multiple output formats. Choose the one that best fits your use case.

Supported formats

FormatBest forTransparencyCompression
PNGUI screenshots, pixel-perfect capturesYesLossless
JPEGPhotos, large pages, smaller file sizesNoLossy
WebPWeb delivery, best size-to-quality ratioYesBoth

Setting the format

const screenshot = await client.capture({
  url: 'https://example.com',
  format: 'webp'
});
The default format is png.

Quality settings

For JPEG and WebP formats, use the quality parameter to control compression. The value is an integer between 0 and 100:
const screenshot = await client.capture({
  url: 'https://example.com',
  format: 'jpeg',
  quality: 80
});
Quality rangeFile sizeVisual quality
90-100LargeHighest fidelity
70-89MediumGood for most uses
50-69SmallNoticeable artifacts
Below 50SmallestSignificant quality loss
The quality parameter has no effect on PNG format since PNG uses lossless compression.

PDF output

Screenshotly also supports PDF output with additional options:
{
  "url": "https://example.com",
  "format": "pdf",
  "pdfOptions": {
    "format": "A4",
    "printBackground": true,
    "landscape": false,
    "margin": {
      "top": "1in",
      "bottom": "1in"
    }
  }
}

PDF-specific parameters

ParameterTypeDescription
pdfOptions.formatstringPaper size: A4, Letter, Legal, etc.
pdfOptions.printBackgroundbooleanInclude background colors and images
pdfOptions.landscapebooleanUse landscape orientation
pdfOptions.marginobjectPage margins (top, bottom, left, right)
pdfOptions.scalenumberScale of the webpage rendering (0.1 to 2)
pdfOptions.pageRangesstringPage ranges to print, e.g. “1-3, 5”

Choosing a format

  • Use PNG when you need transparency or pixel-perfect accuracy
  • Use JPEG at quality 75-85 for the best balance of size and quality
  • Use WebP for web delivery where browser support is available
  • Use PDF when you need a printable document format

Plan availability

The Free plan supports PNG only. JPEG, WebP, and PDF are available on the Starter plan and above.