Skip to content

ImageReader

Defined in: packages/readers/src/image.ts:6

Reads the content of an image file into a Document object (which stores the image file as a Blob).

new ImageReader(): ImageReader

ImageReader

FileReader.constructor

static addMetaData(filePath): (doc, index) => void

Defined in: packages/core/src/schema/type.ts:94

string

(doc, index): void

BaseNode

number

void

FileReader.addMetaData


loadData(filePath): Promise<ImageDocument<Metadata>[]>

Defined in: packages/core/src/schema/type.ts:65

string

Promise<ImageDocument<Metadata>[]>

FileReader.loadData


loadDataAsContent(fileContent): Promise<ImageDocument<Metadata>[]>

Defined in: packages/readers/src/image.ts:13

Public method for this reader. Required by BaseReader interface.

Uint8Array

The content of the file.

Promise<ImageDocument<Metadata>[]>

Promise<Document[]> A Promise object, eventually yielding zero or one ImageDocument of the specified file.

FileReader.loadDataAsContent