Capture with a transparent background instead of white
A logo card on white is a logo card on white forever. Without the backdrop, it is an asset.
omit_backgroundformatselectorimage_qualitycurl --fail-with-body "https://api.pagecapture.dev/v1/take" \
-H "X-Access-Key: $PAGECAPTURE_KEY" \
-H "Content-Type: application/json" \
--data '{"url":"https://example.com","format":"png","omit_background":true,"selector":"main"}' \
-o capture.pngVerified 2026-08-13 by running the published code against a fixture.
Configure it in the playgroundWhat it does
- Renders without the default backdrop, so anything the page does not paint stays transparent.
- Preserves the alpha channel in every format that has one — PNG, WebP, AVIF and TIFF among the formats this build encodes.
- Combines with `selector`, which is where it earns its keep: one component, no page behind it.
What it does not do
- Does not remove a background the page itself paints. A `body` with a background colour is content, not backdrop — hide or override it with `styles`.
- Does not survive a format without alpha. JPEG has no transparency, and the area composites against black or white depending on the encoder.
- Does not apply to PDF, where the page model has no transparent canvas.
Every limit on this page is the one the API enforces
These rows are read from the same parameter table that validates your request. Nothing here is transcribed, so a number cannot drift from the behaviour it describes.
| Parameter | Type | Default | Range | Endpoints | Cache key |
|---|---|---|---|---|---|
omit_backgroundRender with a transparent background where the format supports alpha. | boolean | false | — | /v1/take | In |
formatOutput format. Defaults to `jpg` on /take and `mp4` on /animate. | enum | jpg | — | /v1/take, /v1/animate | In |
selectorCapture only the element matching this CSS selector. | string | — | — | /v1/take | In |
image_qualityEncoder quality for lossy formats. | integer | 80 | 1 – 100 | /v1/take, /v1/animate | In |
How it behaves next to the rest of the request
formatOutput format. Defaults to `jpg` on /take and `mp4` on /animate.
Choose one with an alpha channel. This build's encoder support is measured at runtime and shown in the dashboard, because JP2 and HEVC-HEIF are not compiled into the libvips it links against.
selectorCapture only the element matching this CSS selector.
The pairing that matters: capture one element with no backdrop and you get an asset instead of a screenshot.
stylesCSS injected into the page.
When the page paints its own background, inject `background: transparent` for the elements you need cleared. Transparency then comes from the page rather than from the absence of a backdrop.
Errors this option can produce
None of them is billable. No error code in the catalog is.
Related capabilities
All capabilitiesGuides that cover this in depth
Text picks up a halo of grey speckle at the edges of glyphs, or a 1200x630 card leaves the renderer as a multi-megabyte PNG that a CDN then serves on every page view.
A logo, badge or card exported for use over an unknown background arrives with a white rectangle around it, and the CSS inspector insists the background is `transparent`.
100 successful captures a month, every feature unlocked, no card.
Get an API keyPageCapture Engineering · reviewed by PageCapture API maintainers · Verified 2026-08-13 by running the published code against a fixture.