> 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: ApiStashImageInfo

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

Metadata of one stashed file.

## Properties

### bitdepth?

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

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

Colour depth in bits. `siiprop=bitdepth`.

***

### canonicaltitle?

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

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

Canonical localized file title. `siiprop=canonicaltitle`.

***

### commonmetadata?

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

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

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

***

### descriptionshorturl?

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

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

Shortened description-page URL. `siiprop=url`; only when the repo returns one.

***

### descriptionurl?

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

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

URL of the file description page. `siiprop=url`; equals [url](#url) for a stashed file.

***

### duration?

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

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

Media duration in seconds (audio/video), when the handler reports one.
Emitted under `siiprop=size|dimensions`; there is no
`siiprop=duration`.

***

### extmetadata?

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

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

Structured/extended metadata keyed by field name. `siiprop=extmetadata`.

***

### height?

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

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

Pixel height. `siiprop=size|dimensions`.

***

### metadata?

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

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

Raw format metadata (EXIF / PNG chunks / …). `siiprop=metadata`;
`null` when the file has none.

***

### mime?

> `optional` **mime?**: `string`

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

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

***

### pagecount?

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

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

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?

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

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

HiDPI (`2x`, …) source URLs keyed by pixel-density multiplier. Requires
`siiprop=url`, plus a successful transform.

***

### sha1?

> `optional` **sha1?**: `string`

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

Content checksum (hex). `siiprop=sha1`.

***

### size?

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

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

Size in bytes. `siiprop=size|dimensions`.

***

### thumberror?

> `optional` **thumberror?**: `string`

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

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?

> `optional` **thumbheight?**: `number`

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

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

***

### thumbmime?

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

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

MIME type the thumbnail will be rendered as. `siiprop=thumbmime`; requires
`siiprop=url` and a transform via `siiurlwidth`/`siiurlheight`.

***

### thumburl?

> `optional` **thumburl?**: `string`

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

Scaled thumbnail URL. Requires `siiprop=url`, plus a transform requested
via `siiurlwidth`, `siiurlheight` or `siiurlparam`.

***

### thumbwidth?

> `optional` **thumbwidth?**: `number`

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

Scaled thumbnail width (px). Falls back to the file's own width when no
resize happened. Same requirements as [thumburl](#thumburl).

***

### timestamp?

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

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

When the file was stashed. `siiprop=timestamp`.

***

### url?

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

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

Direct URL to the stashed file (an `Special:UploadStash/file/…` link). `siiprop=url`.

***

### width?

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

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

Pixel width. `siiprop=size|dimensions`.
