Media / foldkit-media/unpic

DetectOptions

interface · packages/media/src/unpic/index.ts:13

interface DetectOptions {
  readonly widths?: Widths.Widths | undefined
  readonly sources?: ReadonlyArray<Format> | undefined
  readonly fallback?: Encoding | undefined
  readonly quality?: number | undefined
}

Members

DetectOptions.widths

property · packages/media/src/unpic/index.ts:15

readonly widths?: Widths.Widths | undefined

The widths offered: Widths.standard unless given.

DetectOptions.sources

property · packages/media/src/unpic/index.ts:20

readonly sources?: ReadonlyArray<Format> | undefined

Formats offered as sources, most preferred first. None unless given: the img asks for auto, and the host picks the format from Accept.

DetectOptions.fallback

property · packages/media/src/unpic/index.ts:22

readonly fallback?: Encoding | undefined

What the img asks for: auto unless given.

DetectOptions.quality

property · packages/media/src/unpic/index.ts:24

readonly quality?: number | undefined

The encoder's quality, where the host takes one.