Skip to content

ImgProcFileRecord

Data entry with metadata in the cache database

Extends

Properties

b?

optional b: number

Dominant color based on sharp().stats()

  • Updatable

Inherited from

ImgProcFile.b

Defined in

src/types.ts:615


base64?

optional base64: string

Base64 for placeholder

Inherited from

ImgProcFile.base64

Defined in

src/types.ts:596


category

category: ImgProcFileCategory

File category

Inherited from

ImgProcFile.category

Defined in

src/types.ts:594


countdown

countdown: number

Count to expiration

Defined in

src/types.ts:649


expiresAt?

optional expiresAt: number

Remote image expiration date (unixtime, milliseconds)

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

Inherited from

ImgProcFile.expiresAt

Defined in

src/types.ts:639


format

format: string

Based on sharp().metadata()

Inherited from

ImgProcFile.format

Defined in

src/types.ts:632


g?

optional g: number

Dominant color based on sharp().stats()

  • Updatable

Inherited from

ImgProcFile.g

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)

Inherited from

ImgProcFile.hash

Defined in

src/types.ts:592


height

height: number

Real height

Inherited from

ImgProcFile.height

Defined in

src/types.ts:600


lastUsedAt

lastUsedAt: number

Unixtime of the last used build (ms)

Defined in

src/types.ts:647


profile?

optional profile: string

Only for variant and placeholder

Inherited from

ImgProcFile.profile

Defined in

src/types.ts:628


r?

optional r: number

Dominant color based on sharp().stats()

  • Updatable

Inherited from

ImgProcFile.r

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”

Inherited from

ImgProcFile.source

Defined in

src/types.ts:624


width

width: number

Real width

Inherited from

ImgProcFile.width

Defined in

src/types.ts:598