Skip to main content
Image buffer content item for content-based extraction.
export interface ImageBufferContentItem {
  type: "image-buffer";
  image_type: "png" | "jpeg" | "gif" | "webp";
  data: Buffer;
}

Properties

type
'image-buffer'
The type of the content item, which is always “image-buffer”.
image_type
'png' | 'jpeg' | 'gif' | 'webp'
The image format (e.g., “png”, “jpeg”, “gif”, “webp”).
data
Buffer
The Buffer containing the raw image data.