For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/api/core/ApiImageInfo.md.
  • English
  • Interface: ApiImageInfo

    Defined in: core/query/imageinfo.ts:78

    One image-info entry for a file page.

    Extends

    Extended by

    Properties

    anon?

    optional anon?: true

    Defined in: core/query/imageinfo.ts:237

    Made by an anonymous (IP) uploader. A Flag.


    archivename?

    optional archivename?: string

    Defined in: core/query/imageinfo.ts:231

    Archive name for a historical version. iiprop=archivename.


    bitdepth?

    optional bitdepth?: number

    Defined in: core/query/imageinfo.ts:174

    Color bit depth; 0 for files without dimensions (e.g. audio). iiprop=bitdepth.


    canonicaltitle?

    optional canonicaltitle?: string

    Defined in: core/query/imageinfo.ts:110

    Canonical localized file title. iiprop=canonicaltitle.


    comment?

    optional comment?: string

    Defined in: core/query/imageinfo.ts:89

    Raw upload comment. iiprop=comment.


    commenthidden?

    optional commenthidden?: true

    Defined in: core/query/shared.ts:28

    The comment is hidden. A Flag.

    Inherited from

    ApiHiddenFlags.commenthidden


    commonmetadata?

    optional commonmetadata?: 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?

    optional descriptionshorturl?: string

    Defined in: core/query/imageinfo.ts:119

    Shortened description-page URL. iiprop=url.


    descriptionurl?

    optional descriptionurl?: string

    Defined in: core/query/imageinfo.ts:116

    URL of the file description page. iiprop=url.


    duration?

    optional duration?: 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?

    optional extmetadata?: 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?

    optional filehidden?: true

    Defined in: core/query/imageinfo.ts:234

    The file itself is hidden. A Flag.


    filemissing?

    optional filemissing?: 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?

    optional height?: number

    Defined in: core/query/imageinfo.ts:107

    Height in pixels; 0 for files without dimensions (e.g. audio). iiprop=size|dimensions.


    html?

    optional html?: 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?

    optional mediatype?: string

    Defined in: core/query/imageinfo.ts:171

    Media type, e.g. BITMAP, OFFICE, ARCHIVE. iiprop=mediatype.


    metadata?

    optional metadata?: 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?

    optional mime?: string

    Defined in: core/query/imageinfo.ts:168

    MIME type, e.g. image/png. iiprop=mime.


    pagecount?

    optional pagecount?: 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?

    optional parsedcomment?: string

    Defined in: core/query/imageinfo.ts:92

    HTML-rendered comment. iiprop=parsedcomment.


    responsiveUrls?

    optional responsiveUrls?: 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?

    optional sha1?: string

    Defined in: core/query/imageinfo.ts:165

    File SHA-1 (hex). iiprop=sha1.


    size?

    optional size?: number

    Defined in: core/query/imageinfo.ts:95

    File size in bytes. iiprop=size|dimensions.


    suppressed?

    optional suppressed?: true

    Defined in: core/query/shared.ts:34

    Oversight/suppression applies to the entry (set together with the *hidden flags). A Flag.

    Inherited from

    ApiHiddenFlags.suppressed


    temp?

    optional temp?: true

    Defined in: core/query/imageinfo.ts:244

    The uploader is a temporary account. A Flag.

    Since

    MediaWiki 1.42


    thumbattribs?

    optional thumbattribs?: 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?

    optional thumberror?: 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?

    optional thumbheight?: number

    Defined in: core/query/imageinfo.ts:138

    Scaled thumbnail height (px). Falls back to the file's own height like thumbwidth.


    thumbmime?

    optional thumbmime?: 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?

    optional thumburl?: string

    Defined in: core/query/imageinfo.ts:125

    Scaled thumbnail URL. Requires iiprop=url, plus a transform requested via iiurlwidth, iiurlheight or iiurlparam.


    thumburls?

    optional thumburls?: 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?

    optional thumbwidth?: 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?

    optional timestamp?: string

    Defined in: core/query/imageinfo.ts:80

    Timestamp of the file's upload/reversion. iiprop=timestamp.


    url?

    optional url?: string

    Defined in: core/query/imageinfo.ts:113

    Direct URL to the file. iiprop=url.


    user?

    optional user?: string

    Defined in: core/query/imageinfo.ts:83

    Uploader user name. iiprop=user.


    userhidden?

    optional userhidden?: true

    Defined in: core/query/shared.ts:25

    The acting user is hidden. A Flag.

    Inherited from

    ApiHiddenFlags.userhidden


    userid?

    optional userid?: number

    Defined in: core/query/imageinfo.ts:86

    Uploader user id. iiprop=userid.


    width?

    optional width?: number

    Defined in: core/query/imageinfo.ts:101

    Width in pixels; 0 for files without dimensions (e.g. audio). iiprop=size|dimensions.