Skip to main content
Snapopa supports multiple output formats for different use cases.

Available Formats

FormatMIME TypeUse Case
pngimage/pngHigh quality, transparency support
jpegimage/jpegSmaller file size, photos
webpimage/webpModern format, best compression
pdfapplication/pdfDocuments, printing

PNG (Default)

Best for screenshots with text, UI elements, or transparency.
{
  "url": "https://example.com",
  "format": "png"
}
  • Lossless compression
  • Supports transparency
  • Larger file sizes

JPEG

Best for photos and when file size matters.
{
  "url": "https://example.com",
  "format": "jpeg",
  "quality": 85
}
  • Lossy compression (controlled by quality)
  • Smaller files
  • No transparency support
The quality parameter (1-100) only affects JPEG and WebP formats.

WebP

Modern format with excellent compression.
{
  "url": "https://example.com",
  "format": "webp",
  "quality": 90
}
  • Best compression ratio
  • Supports transparency
  • Wide browser support

PDF

For document-style captures and printing.
{
  "url": "https://example.com",
  "format": "pdf",
  "isFullPage": true
}
  • Vector text (searchable/selectable)
  • Best for printing
  • Often used with isFullPage: true

Response Types

Control how the capture is returned:
{
  "url": "https://example.com",
  "responseType": "json"
}
Response:
{
  "success": true,
  "data": {
    "fileUrl": "https://cdn.snapopa.com/abc.png",
    "metadata": { ... }
  }
}

Format Comparison

FeaturePNGJPEGWebPPDF
TransparencyYesNoYesNo
CompressionLosslessLossyBoth-
Quality paramNoYesYesNo
Best forUI/TextPhotosGeneralDocs
Avg sizeLargeSmallSmallestVaries