Skip to content

getBlobThumbnailUrl()

@blobs/sdk v0.1.0


@blobs/sdk / utils/blobUtils / getBlobThumbnailUrl

getBlobThumbnailUrl(sdk, blob, options?): string | undefined

Defined in: utils/blobUtils.ts:454

Build a thumbnail URL for a blob’s first image attachment.

Auto-injects an auth token for private blobs when includeToken is not explicitly set.

Parameters

sdk

BlobsClient

BlobsSDK instance.

blob

Blob

Blob whose first image to link.

options?

MediaUrlOptions

Optional URL options (includeToken defaults to !blob.is_public).

Returns

string | undefined

A thumbnail URL string, or undefined if the blob has no attachments.