Interface: ApiImageInfo
Defined in: core/query/imageinfo.ts:78
One image-info entry for a file page.
Extends
Extended by
Properties
anon?
optionalanon?:true
Defined in: core/query/imageinfo.ts:237
Made by an anonymous (IP) uploader. A Flag.
archivename?
optionalarchivename?:string
Defined in: core/query/imageinfo.ts:231
Archive name for a historical version. iiprop=archivename.
bitdepth?
optionalbitdepth?:number
Defined in: core/query/imageinfo.ts:174
Color bit depth; 0 for files without dimensions (e.g. audio). iiprop=bitdepth.
canonicaltitle?
optionalcanonicaltitle?:string
Defined in: core/query/imageinfo.ts:110
Canonical localized file title. iiprop=canonicaltitle.
comment?
optionalcomment?:string
Defined in: core/query/imageinfo.ts:89
Raw upload comment. iiprop=comment.
commenthidden?
optionalcommenthidden?:true
Defined in: core/query/shared.ts:28
The comment is hidden. A Flag.
Inherited from
commonmetadata?
optionalcommonmetadata?:ApiImageMetadataItem[]
Defined in: core/query/imageinfo.ts:186
Metadata keys common to all file types, same item shape as metadata.
iiprop=commonmetadata; an empty PHP map, so [] when there is none.
descriptionshorturl?
optionaldescriptionshorturl?:string
Defined in: core/query/imageinfo.ts:119
Shortened description-page URL. iiprop=url.
descriptionurl?
optionaldescriptionurl?:string
Defined in: core/query/imageinfo.ts:116
URL of the file description page. iiprop=url.
duration?
optionalduration?:number
Defined in: core/query/imageinfo.ts:221
Media duration in seconds (audio/video), when the handler reports one.
Emitted under iiprop=size|dimensions; there is no iiprop=duration.
extmetadata?
optionalextmetadata?:Record<string,ApiExtMetadataField>
Defined in: core/query/imageinfo.ts:194
Structured/extended metadata keyed by field name. iiprop=extmetadata.
A bare MediaWiki core only produces DateTime and ObjectName here; the
richer per-file fields (GPS, licensing, …) are contributed by
GetExtendedMetadata hooks on the serving wiki (e.g. Extension:Metadata).
filehidden?
optionalfilehidden?:true
Defined in: core/query/imageinfo.ts:234
The file itself is hidden. A Flag.
filemissing?
optionalfilemissing?:true
Defined in: core/query/imageinfo.ts:215
true when the file itself does not exist on this wiki (a stub row). A Flag.
height?
optionalheight?:number
Defined in: core/query/imageinfo.ts:107
Height in pixels; 0 for files without dimensions (e.g. audio).
iiprop=size|dimensions.
html?
optionalhtml?:string
Defined in: core/query/imageinfo.ts:212
Upload-warning HTML ("a file with this name exists already…").
iiprop=uploadwarning; "" when there is nothing to warn about.
mediatype?
optionalmediatype?:string
Defined in: core/query/imageinfo.ts:171
Media type, e.g. BITMAP, OFFICE, ARCHIVE. iiprop=mediatype.
metadata?
optionalmetadata?:ApiImageMetadataItem[] |null
Defined in: core/query/imageinfo.ts:180
Raw format metadata (EXIF / PNG chunks / …). iiprop=metadata; an
explicit null when the file has no metadata at all.
mime?
optionalmime?:string
Defined in: core/query/imageinfo.ts:168
MIME type, e.g. image/png. iiprop=mime.
pagecount?
optionalpagecount?:number
Defined in: core/query/imageinfo.ts:228
Page count (multi-page documents such as PDFs/TIFFs), when the handler
supports one. Emitted under iiprop=size|dimensions; there is no
iiprop=pagecount.
parsedcomment?
optionalparsedcomment?:string
Defined in: core/query/imageinfo.ts:92
HTML-rendered comment. iiprop=parsedcomment.
responsiveUrls?
optionalresponsiveUrls?:Record<string,string>
Defined in: core/query/imageinfo.ts:162
HiDPI (2x, …) source URLs keyed by pixel-density multiplier. Requires
iiprop=url, plus a successful transform.
sha1?
optionalsha1?:string
Defined in: core/query/imageinfo.ts:165
File SHA-1 (hex). iiprop=sha1.
size?
optionalsize?:number
Defined in: core/query/imageinfo.ts:95
File size in bytes. iiprop=size|dimensions.
suppressed?
optionalsuppressed?:true
Defined in: core/query/shared.ts:34
Oversight/suppression applies to the entry (set together with the
*hidden flags). A Flag.
Inherited from
temp?
optionaltemp?:true
Defined in: core/query/imageinfo.ts:244
The uploader is a temporary account. A Flag.
Since
MediaWiki 1.42
thumbattribs?
optionalthumbattribs?:Record<string,string|number>
Defined in: core/query/imageinfo.ts:146
Pre-rendered <img> attributes for the thumbnail (e.g. src, width,
srcset).
Since
MediaWiki 1.47
thumberror?
optionalthumberror?:string
Defined in: core/query/imageinfo.ts:206
Rendered text of the thumbnail error, when the thumbnail could not be
made. Requires iiprop=url, plus a transform.
thumbheight?
optionalthumbheight?:number
Defined in: core/query/imageinfo.ts:138
Scaled thumbnail height (px). Falls back to the file's own height like thumbwidth.
thumbmime?
optionalthumbmime?:string
Defined in: core/query/imageinfo.ts:200
MIME type the thumbnail will be rendered as. iiprop=thumbmime, which
requires iiprop=url and a transform via iiurlwidth/iiurlheight.
thumburl?
optionalthumburl?:string
Defined in: core/query/imageinfo.ts:125
Scaled thumbnail URL. Requires iiprop=url, plus a transform requested
via iiurlwidth, iiurlheight or iiurlparam.
thumburls?
optionalthumburls?:Record<string,ApiThumbUrlEntry>
Defined in: core/query/imageinfo.ts:156
Scaled thumbnail URLs at multiple widths, keyed by the produced
thumbnail's width (normally the requested width; e.g. "400", "800").
iiprop=thumburls. Each entry also folds in the transform's HTML <img>
attributes.
Since
MediaWiki 1.47
thumbwidth?
optionalthumbwidth?:number
Defined in: core/query/imageinfo.ts:132
Scaled thumbnail width (px). Falls back to the file's own width when the thumbnail URL equals the original URL (no resize happened). Same requirements as thumburl.
timestamp?
optionaltimestamp?:string
Defined in: core/query/imageinfo.ts:80
Timestamp of the file's upload/reversion. iiprop=timestamp.
url?
optionalurl?:string
Defined in: core/query/imageinfo.ts:113
Direct URL to the file. iiprop=url.
user?
optionaluser?:string
Defined in: core/query/imageinfo.ts:83
Uploader user name. iiprop=user.
userhidden?
optionaluserhidden?:true
Defined in: core/query/shared.ts:25
The acting user is hidden. A Flag.
Inherited from
userid?
optionaluserid?:number
Defined in: core/query/imageinfo.ts:86
Uploader user id. iiprop=userid.
width?
optionalwidth?:number
Defined in: core/query/imageinfo.ts:101
Width in pixels; 0 for files without dimensions (e.g. audio).
iiprop=size|dimensions.