Collecting external resources

E.g., import external graphics or possibly other resources.

import { ResourceCollector } from '@phfaist/zoodb/resourcecollector';
class ResourceCollector()

Main manager class for collecting external resources.

Needs doc!!!………………

ResourceCollector.ResourceCollector

Resource Retrievers

import {
    FilesystemResourceRetriever
} from '@phfaist/zoodb/resourcecollector/retriever/fs';

(There might be more retrievers in the future.)

class FilesystemResourceRetriever()

Doc……..

options.fs should be an object providing the methods access() and readFile() (the readFile() method is in fact only needed if the file renaming template includes a hash of the file content). Alternatively (and even better), options.fs.promises can contain the promisified versions of those functions. Additionally, if copy_to_target_directory is true, then the methods mkdir() and copyFile(src, dest) should also be available.

FilesystemResourceRetriever.FilesystemResourceRetriever

Resource Processors

import {
    FLMGraphicsResourceProcessor
} from '@phfaist/zoodb/resourcecollector/processor/flmgraphicsprocessor';

(There might be more processors in the future.)

class FLMGraphicsResourceProcessor()

Process graphics to extract physical image dimensions, resolution, and other information.

FLMGraphicsResourceProcessor.FLMGraphicsResourceProcessor