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/ApiAllImage.md.
  • English
  • Interface: ApiAllImage

    Defined in: core/query/allimages.ts:13

    One file listed by list=allimages.

    Extends

    Properties

    anon?

    optional anon?: true

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

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

    Inherited from

    ApiImageInfo.anon


    archivename?

    optional archivename?: string

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

    Archive name for a historical version. iiprop=archivename.

    Inherited from

    ApiImageInfo.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.

    Inherited from

    ApiImageInfo.bitdepth


    canonicaltitle?

    optional canonicaltitle?: string

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

    Canonical localized file title. iiprop=canonicaltitle.

    Inherited from

    ApiImageInfo.canonicaltitle


    comment?

    optional comment?: string

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

    Raw upload comment. iiprop=comment.

    Inherited from

    ApiImageInfo.comment


    commenthidden?

    optional commenthidden?: true

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

    The comment is hidden. A Flag.

    Inherited from

    ApiImageInfo.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.

    Inherited from

    ApiImageInfo.commonmetadata


    descriptionshorturl?

    optional descriptionshorturl?: string

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

    Shortened description-page URL. iiprop=url.

    Inherited from

    ApiImageInfo.descriptionshorturl


    descriptionurl?

    optional descriptionurl?: string

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

    URL of the file description page. iiprop=url.

    Inherited from

    ApiImageInfo.descriptionurl


    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.

    Inherited from

    ApiImageInfo.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).

    Inherited from

    ApiImageInfo.extmetadata


    filehidden?

    optional filehidden?: true

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

    The file itself is hidden. A Flag.

    Inherited from

    ApiImageInfo.filehidden


    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.

    Inherited from

    ApiImageInfo.filemissing


    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.

    Inherited from

    ApiImageInfo.height


    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.

    Inherited from

    ApiImageInfo.html


    mediatype?

    optional mediatype?: string

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

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

    Inherited from

    ApiImageInfo.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.

    Inherited from

    ApiImageInfo.metadata


    mime?

    optional mime?: string

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

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

    Inherited from

    ApiImageInfo.mime


    name

    name: string

    Defined in: core/query/allimages.ts:15

    File name without the File: prefix.


    ns

    ns: number

    Defined in: core/query/allimages.ts:18

    Namespace index (the File namespace, 6).


    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.

    Inherited from

    ApiImageInfo.pagecount


    parsedcomment?

    optional parsedcomment?: string

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

    HTML-rendered comment. iiprop=parsedcomment.

    Inherited from

    ApiImageInfo.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.

    Inherited from

    ApiImageInfo.responsiveUrls


    sha1?

    optional sha1?: string

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

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

    Inherited from

    ApiImageInfo.sha1


    size?

    optional size?: number

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

    File size in bytes. iiprop=size|dimensions.

    Inherited from

    ApiImageInfo.size


    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

    ApiImageInfo.suppressed


    temp?

    optional temp?: true

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

    The uploader is a temporary account. A Flag.

    Since

    MediaWiki 1.42

    Inherited from

    ApiImageInfo.temp


    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

    Inherited from

    ApiImageInfo.thumbattribs


    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.

    Inherited from

    ApiImageInfo.thumberror


    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.

    Inherited from

    ApiImageInfo.thumbheight


    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.

    Inherited from

    ApiImageInfo.thumbmime


    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.

    Inherited from

    ApiImageInfo.thumburl


    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

    Inherited from

    ApiImageInfo.thumburls


    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.

    Inherited from

    ApiImageInfo.thumbwidth


    timestamp?

    optional timestamp?: string

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

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

    Inherited from

    ApiImageInfo.timestamp


    title

    title: string

    Defined in: core/query/allimages.ts:21

    Full file title, e.g. File:Wiki.png.


    url?

    optional url?: string

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

    Direct URL to the file. iiprop=url.

    Inherited from

    ApiImageInfo.url


    user?

    optional user?: string

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

    Uploader user name. iiprop=user.

    Inherited from

    ApiImageInfo.user


    userhidden?

    optional userhidden?: true

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

    The acting user is hidden. A Flag.

    Inherited from

    ApiImageInfo.userhidden


    userid?

    optional userid?: number

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

    Uploader user id. iiprop=userid.

    Inherited from

    ApiImageInfo.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.

    Inherited from

    ApiImageInfo.width