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

# Interface: ApiImageInfo

Defined in: [core/query/imageinfo.ts:78](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L78)

One image-info entry for a file page.

## Extends

- [`ApiHiddenFlags`](https://types-mediawiki-response.pages.dev/api/core/ApiHiddenFlags.md)

## Extended by

- [`ApiVideoInfo`](https://types-mediawiki-response.pages.dev/api/extensions/timedmediahandler/ApiVideoInfo.md)
- [`ApiAllImage`](https://types-mediawiki-response.pages.dev/api/core/ApiAllImage.md)

## Properties

### anon?

> `optional` **anon?**: `true`

Defined in: [core/query/imageinfo.ts:237](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L237)

Made by an anonymous (IP) uploader. A [Flag](https://types-mediawiki-response.pages.dev/api/core/Flag.md).

***

### archivename?

> `optional` **archivename?**: `string`

Defined in: [core/query/imageinfo.ts:231](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L231)

Archive name for a historical version. `iiprop=archivename`.

***

### bitdepth?

> `optional` **bitdepth?**: `number`

Defined in: [core/query/imageinfo.ts:174](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L174)

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

***

### canonicaltitle?

> `optional` **canonicaltitle?**: `string`

Defined in: [core/query/imageinfo.ts:110](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L110)

Canonical localized file title. `iiprop=canonicaltitle`.

***

### comment?

> `optional` **comment?**: `string`

Defined in: [core/query/imageinfo.ts:89](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L89)

Raw upload comment. `iiprop=comment`.

***

### commenthidden?

> `optional` **commenthidden?**: `true`

Defined in: [core/query/shared.ts:28](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/shared.ts#L28)

The comment is hidden. A [Flag](https://types-mediawiki-response.pages.dev/api/core/Flag.md).

#### Inherited from

[`ApiHiddenFlags`](https://types-mediawiki-response.pages.dev/api/core/ApiHiddenFlags.md).[`commenthidden`](https://types-mediawiki-response.pages.dev/api/core/ApiHiddenFlags.md#commenthidden)

***

### commonmetadata?

> `optional` **commonmetadata?**: [`ApiImageMetadataItem`](https://types-mediawiki-response.pages.dev/api/core/ApiImageMetadataItem.md)\[]

Defined in: [core/query/imageinfo.ts:186](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L186)

Metadata keys common to all file types, same item shape as [metadata](#metadata).
`iiprop=commonmetadata`; an empty PHP map, so `[]` when there is none.

***

### descriptionshorturl?

> `optional` **descriptionshorturl?**: `string`

Defined in: [core/query/imageinfo.ts:119](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L119)

Shortened description-page URL. `iiprop=url`.

***

### descriptionurl?

> `optional` **descriptionurl?**: `string`

Defined in: [core/query/imageinfo.ts:116](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L116)

URL of the file description page. `iiprop=url`.

***

### duration?

> `optional` **duration?**: `number`

Defined in: [core/query/imageinfo.ts:221](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L221)

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`](https://types-mediawiki-response.pages.dev/api/core/ApiExtMetadataField.md)>

Defined in: [core/query/imageinfo.ts:194](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L194)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L234)

The file itself is hidden. A [Flag](https://types-mediawiki-response.pages.dev/api/core/Flag.md).

***

### filemissing?

> `optional` **filemissing?**: `true`

Defined in: [core/query/imageinfo.ts:215](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L215)

`true` when the file itself does not exist on this wiki (a stub row). A [Flag](https://types-mediawiki-response.pages.dev/api/core/Flag.md).

***

### height?

> `optional` **height?**: `number`

Defined in: [core/query/imageinfo.ts:107](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L107)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L212)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L171)

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

***

### metadata?

> `optional` **metadata?**: [`ApiImageMetadataItem`](https://types-mediawiki-response.pages.dev/api/core/ApiImageMetadataItem.md)\[] | `null`

Defined in: [core/query/imageinfo.ts:180](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L180)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L168)

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

***

### pagecount?

> `optional` **pagecount?**: `number`

Defined in: [core/query/imageinfo.ts:228](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L228)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L92)

HTML-rendered comment. `iiprop=parsedcomment`.

***

### responsiveUrls?

> `optional` **responsiveUrls?**: `Record`\<`string`, `string`>

Defined in: [core/query/imageinfo.ts:162](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L162)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L165)

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

***

### size?

> `optional` **size?**: `number`

Defined in: [core/query/imageinfo.ts:95](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L95)

File size in bytes. `iiprop=size|dimensions`.

***

### suppressed?

> `optional` **suppressed?**: `true`

Defined in: [core/query/shared.ts:34](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/shared.ts#L34)

Oversight/suppression applies to the entry (set together with the
`*hidden` flags). A [Flag](https://types-mediawiki-response.pages.dev/api/core/Flag.md).

#### Inherited from

[`ApiHiddenFlags`](https://types-mediawiki-response.pages.dev/api/core/ApiHiddenFlags.md).[`suppressed`](https://types-mediawiki-response.pages.dev/api/core/ApiHiddenFlags.md#suppressed)

***

### temp?

> `optional` **temp?**: `true`

Defined in: [core/query/imageinfo.ts:244](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L244)

The uploader is a temporary account. A [Flag](https://types-mediawiki-response.pages.dev/api/core/Flag.md).

#### Since

MediaWiki 1.42

***

### thumbattribs?

> `optional` **thumbattribs?**: `Record`\<`string`, `string` | `number`>

Defined in: [core/query/imageinfo.ts:146](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L146)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L206)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L138)

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

***

### thumbmime?

> `optional` **thumbmime?**: `string`

Defined in: [core/query/imageinfo.ts:200](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L200)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L125)

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

***

### thumburls?

> `optional` **thumburls?**: `Record`\<`string`, [`ApiThumbUrlEntry`](https://types-mediawiki-response.pages.dev/api/core/ApiThumbUrlEntry.md)>

Defined in: [core/query/imageinfo.ts:156](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L156)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L132)

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](#thumburl).

***

### timestamp?

> `optional` **timestamp?**: `string`

Defined in: [core/query/imageinfo.ts:80](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L80)

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

***

### url?

> `optional` **url?**: `string`

Defined in: [core/query/imageinfo.ts:113](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L113)

Direct URL to the file. `iiprop=url`.

***

### user?

> `optional` **user?**: `string`

Defined in: [core/query/imageinfo.ts:83](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L83)

Uploader user name. `iiprop=user`.

***

### userhidden?

> `optional` **userhidden?**: `true`

Defined in: [core/query/shared.ts:25](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/shared.ts#L25)

The acting user is hidden. A [Flag](https://types-mediawiki-response.pages.dev/api/core/Flag.md).

#### Inherited from

[`ApiHiddenFlags`](https://types-mediawiki-response.pages.dev/api/core/ApiHiddenFlags.md).[`userhidden`](https://types-mediawiki-response.pages.dev/api/core/ApiHiddenFlags.md#userhidden)

***

### userid?

> `optional` **userid?**: `number`

Defined in: [core/query/imageinfo.ts:86](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L86)

Uploader user id. `iiprop=userid`.

***

### width?

> `optional` **width?**: `number`

Defined in: [core/query/imageinfo.ts:101](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/imageinfo.ts#L101)

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