コンテンツにスキップ

ImgProcFile

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

Data entry in the cache database

Extended by

Properties

b?

optional b: number

Dominant color based on sharp().stats()

  • Updatable

Defined in

src/types.ts:615


base64?

optional base64: string

Base64 for placeholder

Defined in

src/types.ts:596


category

category: ImgProcFileCategory

File category

Defined in

src/types.ts:594


expiresAt?

optional expiresAt: number

Remote image expiration date (unixtime, milliseconds)

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

Defined in

src/types.ts:639


format

format: string

Based on sharp().metadata()

Defined in

src/types.ts:632


g?

optional g: number

Dominant color based on sharp().stats()

  • Updatable

Defined in

src/types.ts:610


hash

hash: string

Hash

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

Defined in

src/types.ts:592


height

height: number

Real height

Defined in

src/types.ts:600


profile?

optional profile: string

Only for variant and placeholder

Defined in

src/types.ts:628


r?

optional r: number

Dominant color based on sharp().stats()

  • Updatable

Defined in

src/types.ts:605


source

source: string

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”

Defined in

src/types.ts:624


width

width: number

Real width

Defined in

src/types.ts:598