getBlobThumbnail()
@blobs/sdk / utils/blobUtils / getBlobThumbnail
getBlobThumbnail(
blob):Media|undefined
Defined in: utils/blobUtils.ts:431
Pick the first attached image (or fallback to the first attachment) for a blob.
Heuristic match by MIME type prefix (image/*) or a known image file
extension. Useful for choosing a thumbnail to display with the blob.
Parameters
blob
Blob whose files to examine.
Returns
Media | undefined
A media record, or undefined if the blob has no attachments.