Properties
anonymizedUploadDateTime
#
attribution
#
creationDateTime
#
deletionReason
#
description
#
descriptionShortUrl
#
descriptionUrl
#
extmeta
#
height
#
innerInfo
#
latitude
#
license
#
longitude
#
mimeType
#
name
#
pageID
#
permission
#
repo
#
restrictions
#
size
#
source
#
thumburls
#
uploadDateTime
#
url
#
width
#
Methods
getThumbnailUrl(width) → {string}
#
Returns the URL of the smallest available thumbnail at least as wide as the requested
width. The imageinfo API provides URLs for all supported thumbnail sizes in
ImageModel#thumburls, so no separate request is needed. When no thumbnail is wide
enough (or none are available), the full-size original URL is returned.
Parameters:
| Name | Type | Description |
|---|---|---|
width |
number |
Returns:
- Type
- string
Returns the URL of the smallest available thumbnail at least as wide as the requested width.
parseExtmeta(data, type) → {string|number|boolean|Array}static
#
Reads and parses a value from the imageinfo API extmetadata field.