Interface: ApiStashImageInfo
Defined in: core/query/stashimageinfo.ts:20
Metadata of one stashed file.
Properties
bitdepth?
optionalbitdepth?:number
Defined in: core/query/stashimageinfo.ts:49
Colour depth in bits. siiprop=bitdepth.
canonicaltitle?
optionalcanonicaltitle?:string
Defined in: core/query/stashimageinfo.ts:25
Canonical localized file title. siiprop=canonicaltitle.
commonmetadata?
optionalcommonmetadata?:ApiImageMetadataItem[]
Defined in: core/query/stashimageinfo.ts:99
Metadata keys common to all file types, same item shape as
metadata. siiprop=commonmetadata; an empty PHP map, so []
when there is none.
descriptionshorturl?
optionaldescriptionshorturl?:string
Defined in: core/query/stashimageinfo.ts:58
Shortened description-page URL. siiprop=url; only when the repo returns one.
descriptionurl?
optionaldescriptionurl?:string
Defined in: core/query/stashimageinfo.ts:55
URL of the file description page. siiprop=url; equals url for a stashed file.
duration?
optionalduration?:number
Defined in: core/query/stashimageinfo.ts:109
Media duration in seconds (audio/video), when the handler reports one.
Emitted under siiprop=size|dimensions; there is no
siiprop=duration.
extmetadata?
optionalextmetadata?:Record<string,ApiExtMetadataField>
Defined in: core/query/stashimageinfo.ts:102
Structured/extended metadata keyed by field name. siiprop=extmetadata.
height?
optionalheight?:number
Defined in: core/query/stashimageinfo.ts:31
Pixel height. siiprop=size|dimensions.
metadata?
optionalmetadata?:ApiImageMetadataItem[] |null
Defined in: core/query/stashimageinfo.ts:92
Raw format metadata (EXIF / PNG chunks / …). siiprop=metadata;
null when the file has none.
mime?
optionalmime?:string
Defined in: core/query/stashimageinfo.ts:40
MIME type, e.g. image/png. siiprop=mime.
pagecount?
optionalpagecount?:number
Defined in: core/query/stashimageinfo.ts:116
Page count (multi-page documents such as PDFs/TIFFs), when the handler
supports one. Emitted under siiprop=size|dimensions; there
is no siiprop=pagecount.
responsiveUrls?
optionalresponsiveUrls?:Record<string,string>
Defined in: core/query/stashimageinfo.ts:79
HiDPI (2x, …) source URLs keyed by pixel-density multiplier. Requires
siiprop=url, plus a successful transform.
sha1?
optionalsha1?:string
Defined in: core/query/stashimageinfo.ts:37
Content checksum (hex). siiprop=sha1.
size?
optionalsize?:number
Defined in: core/query/stashimageinfo.ts:28
Size in bytes. siiprop=size|dimensions.
thumberror?
optionalthumberror?:string
Defined in: core/query/stashimageinfo.ts:86
Rendered text of the thumbnail error, when the requested thumbnail could
not be made. Requires siiprop=url, plus a transform via
siiurlwidth/siiurlheight/siiurlparam.
thumbheight?
optionalthumbheight?:number
Defined in: core/query/stashimageinfo.ts:73
Scaled thumbnail height (px). Falls back to the file's own height like thumbwidth.
thumbmime?
optionalthumbmime?:string
Defined in: core/query/stashimageinfo.ts:46
MIME type the thumbnail will be rendered as. siiprop=thumbmime; requires
siiprop=url and a transform via siiurlwidth/siiurlheight.
thumburl?
optionalthumburl?:string
Defined in: core/query/stashimageinfo.ts:64
Scaled thumbnail URL. Requires siiprop=url, plus a transform requested
via siiurlwidth, siiurlheight or siiurlparam.
thumbwidth?
optionalthumbwidth?:number
Defined in: core/query/stashimageinfo.ts:70
Scaled thumbnail width (px). Falls back to the file's own width when no resize happened. Same requirements as thumburl.
timestamp?
optionaltimestamp?:string
Defined in: core/query/stashimageinfo.ts:22
When the file was stashed. siiprop=timestamp.
url?
optionalurl?:string
Defined in: core/query/stashimageinfo.ts:52
Direct URL to the stashed file (an Special:UploadStash/file/… link). siiprop=url.
width?
optionalwidth?:number
Defined in: core/query/stashimageinfo.ts:34
Pixel width. siiprop=size|dimensions.