Transform a stored screenshot
Resize, crop and re-encode a screenshot you already captured — no recapture, no AI. Pick a preset or set width / height / format, and optionally cut a region or bounds first. One credit per output; verified cache hits are refunded.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
An unexpired screenshotId belonging to the authenticated account.
^scr_Body
Describe one output at the top level, or several in outputs. With outputs, top-level fields are defaults for every output; an output that says what to cut replaces the default region/bounds.
Named output shape. Explicit fields override it.
On a whole full-page screenshot, the fixed-shape presets (og-image, twitter-card, square) take the top of the page at their aspect ratio. Set region, bounds or fit to choose differently.
og-image, twitter-card, thumbnail, square, full-width Cut this saved region (e.g. region-1) from the screenshot. Requires a capture with regions=true.
With region: one part of it, by id (region-1-part-0) or index (0 = first). Original screenshot pixels.
With region + part: use the stored crop file instead of cutting original pixels. Use it for pages whose whole screenshot exceeds 64 MP or 24 MiB.
Cut an arbitrary rectangle. Cannot be combined with region.
^\d+,\d+,\d+,\d+$Output width. Give one side to keep the aspect ratio.
1 <= x <= 32768Output height.
1 <= x <= 32768How to fit both sides: contain may pad, cover may crop, fill may stretch. Default contain.
contain, cover, fill Padding / transparency fill for contain and JPEG.
^#[0-9a-fA-F]{6}$Output encoding. Default: same family as the source.
jpeg, png, webp Lossy quality. Default 80 (or the preset's).
1 <= x <= 100Several outputs in one job, one credit each. Each is a preset name or an object; top-level fields apply to all. Returns ordered results.
1 - 16 elementsNamed output shape. Explicit fields override it.
On a whole full-page screenshot, the fixed-shape presets (og-image, twitter-card, square) take the top of the page at their aspect ratio. Set region, bounds or fit to choose differently.
og-image, twitter-card, thumbnail, square, full-width b2, s3, r2 standard, reduced_redundancy, standard_ia, onezone_ia, intelligent_tiering, glacier, deep_archive, outposts, glacier_ir private, public-read Response
All outputs completed
- Option 1
- Option 2
^ast_^scr_Ordered crop/resize and optional encoding. Format may occur once, last. Otherwise retain source format, lossy quality 80.
1 - 4 elements