Interface Configuration

The Configuration interface contains various information about the current process.

interface Configuration {
    arguments: string[];
    images: Image[];
    longestEdge: number;
    outputPath: string;
    size: Size;
    requestedSizeForSize(size): Size;
}

Properties

arguments: string[]

Arguments passed into the program as an array of strings.

images: Image[]

Valid images passed as arguments converted into an array of Image objects.

longestEdge: number

If specified, the value of the -Z or --resampleHeightWidthMax option. [default: 0]

outputPath: string

The full path of the output directory specified with -o or --out option.

Default Value

undefined

size: Size

Recommended size for output. Setting the crop or resample flags will set this value.

Methods

  • Internal

    Parameters

    Returns Size

Generated using TypeDoc