コンテンツにスキップ

ImgProcFile

このコンテンツはまだ日本語訳がありません。

Defined in: types.ts:583

Data entry in the cache database

optional b: number

Defined in: types.ts:615

Dominant color based on sharp().stats()

  • Updatable

optional base64: string

Defined in: types.ts:596

Base64 for placeholder


category: ImgProcFileCategory

Defined in: types.ts:594

File category


optional expiresAt: number

Defined in: types.ts:639

Remote image expiration date (unixtime, milliseconds)

  • Updatable
  • Based on Cache-Control or Expires header.
  • Equivalent to browser cache.

format: string

Defined in: types.ts:632

Based on sharp().metadata()


optional g: number

Defined in: types.ts:610

Dominant color based on sharp().stats()

  • Updatable

hash: string

Defined in: types.ts:592

Hash

  • Indexed
  • Placeholder: hasher(base64)
  • Remote file: hasher(src)
  • Local file: hasher(buffer) or hasher(src)
  • Data URL: hasher(base64)

height: number

Defined in: types.ts:600

Real height


optional profile: string

Defined in: types.ts:628

Only for variant and placeholder


optional r: number

Defined in: types.ts:605

Dominant color based on sharp().stats()

  • Updatable

source: string

Defined in: types.ts:624

Source hash

  • Indexed
  • Variant/Placeholder: Source hash
  • Source/Local file: Last used src attribute
  • Source/Remote file: Last used downloaded URL
  • Source/Data URL: Fixed string “data”

width: number

Defined in: types.ts:598

Real width