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

    Defined in: core/query/stashimageinfo.ts:20

    Metadata of one stashed file.

    Properties

    bitdepth?

    optional bitdepth?: number

    Defined in: core/query/stashimageinfo.ts:49

    Colour depth in bits. siiprop=bitdepth.


    canonicaltitle?

    optional canonicaltitle?: string

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

    Canonical localized file title. siiprop=canonicaltitle.


    commonmetadata?

    optional commonmetadata?: ApiImageMetadataItem[]

    Defined in: core/query/stashimageinfo.ts:99

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


    descriptionshorturl?

    optional descriptionshorturl?: string

    Defined in: core/query/stashimageinfo.ts:58

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


    descriptionurl?

    optional descriptionurl?: string

    Defined in: core/query/stashimageinfo.ts:55

    URL of the file description page. siiprop=url; equals url for a stashed file.


    duration?

    optional duration?: number

    Defined in: core/query/stashimageinfo.ts:109

    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>

    Defined in: core/query/stashimageinfo.ts:102

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


    height?

    optional height?: number

    Defined in: core/query/stashimageinfo.ts:31

    Pixel height. siiprop=size|dimensions.


    metadata?

    optional metadata?: ApiImageMetadataItem[] | null

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

    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

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


    pagecount?

    optional pagecount?: number

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

    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

    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

    Content checksum (hex). siiprop=sha1.


    size?

    optional size?: number

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

    Size in bytes. siiprop=size|dimensions.


    thumberror?

    optional thumberror?: string

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

    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

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


    thumbmime?

    optional thumbmime?: string

    Defined in: core/query/stashimageinfo.ts:46

    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

    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

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


    timestamp?

    optional timestamp?: string

    Defined in: core/query/stashimageinfo.ts:22

    When the file was stashed. siiprop=timestamp.


    url?

    optional url?: string

    Defined in: core/query/stashimageinfo.ts:52

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


    width?

    optional width?: number

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

    Pixel width. siiprop=size|dimensions.