Skip to Content

Thumbnail

POST
/v1/thumbnail

Fits one page, image or web page into a fixed box, a 256 × 256 px WebP by default, for file lists, search results and link previews. A URL that serves HTML, such as https://axelered.com, is captured in a browser at desktop width.

Use render when you need a page at reading size.

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Static API key from PAPYRUS_API_KEY

Request Body

  1. body
source*Source

file://, http(s):// URL or :///

destination?|

Connector URI to write the result to

Defaultnull
output?OutputMode

json returns the envelope with the artifact inline, file returns the artifact as the response body; with a destination the response is always the light JSON envelope

Default"file"
Value in"file""json"
options?

Operation options, omitted fields take their defaults

Response Body

The JSON envelope (light with a destination), or the op file for output=file

  1. response
source*

The input document

result*

The primary artifact

options*

The request options with defaults applied

{
  "source": {
    "uri": "https://axelered.com/_og/platform.png",
    "name": "platform.png",
    "size": 80238,
    "mimeType": "image/png",
    "extension": "png",
    "label": "png",
    "group": "image",
    "pageCount": 1,
    "width": 1200,
    "height": 630,
    "fetch": {
      "url": "https://axelered.com/_og/platform.png",
      "status": 200
    }
  },
  "result": {
    "name": "platform.webp",
    "size": 6738,
    "mimeType": "image/webp",
    "extension": "webp",
    "label": "webp",
    "group": "image",
    "width": 320,
    "height": 200,
    "encoding": "base64",
    "content": "UklGRkoaAABXRUJQVlA4ID4aAACwaQCdASpAAcgA…"
  },
  "options": {
    "page": 1,
    "width": 320,
    "height": 200,
    "fit": "cover",
    "format": "webp"
  }
}