Przejdź do głównej zawartości

Class: ImageReader

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

Implements

Constructors

new ImageReader()

new ImageReader(): ImageReader

Returns

ImageReader

Methods

loadData()

loadData(file, fs): Promise <Document <Metadata>[]>

Public method for this reader. Required by BaseReader interface.

Parameters

file: string

Path/name of the file to be loaded.

fs: GenericFileSystem= defaultFS

fs wrapper interface for getting the file content.

Returns

Promise <Document <Metadata>[]>

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

Implementation of

FileReader . loadData

Source

packages/core/src/readers/ImageReader.ts:18