ImgProcFile
Data entry in the cache database
Extended by
Properties
b?
optional
b:number
Dominant color based on sharp().stats()
- Updatable
Defined in
base64?
optional
base64:string
Base64 for placeholder
Defined in
category
category:
ImgProcFileCategory
File category
Defined in
expiresAt?
optional
expiresAt:number
Remote image expiration date (unixtime, milliseconds)
- Updatable
- Based on
Cache-Control
orExpires
header. - Equivalent to browser cache.
Defined in
format
format:
string
Based on sharp().metadata()
Defined in
g?
optional
g:number
Dominant color based on sharp().stats()
- Updatable
Defined in
hash
hash:
string
Hash
- Indexed
- Placeholder:
hasher(base64)
- Remote file:
hasher(src)
- Local file:
hasher(buffer)
orhasher(src)
- Data URL:
hasher(base64)
Defined in
height
height:
number
Real height
Defined in
profile?
optional
profile:string
Only for variant and placeholder
Defined in
r?
optional
r:number
Dominant color based on sharp().stats()
- Updatable
Defined in
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
width
width:
number
Real width