Image buffer content item for content-based extraction.
export interface ImageBufferContentItem {
type: "image-buffer";
image_type: "png" | "jpeg" | "gif" | "webp";
data: Buffer;
}
Properties
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”).
The Buffer containing the raw image data.