Extension:PageImages

This extension collects information about images used on a page.

API
Page images information is exposed via the prop=pageimages API.

Example: /w/api.php?action=query&prop=pageimages&titles=Somepage&format=json

/w/api.php?action=query&prop=pageimages&titles=Somepage&format=xml

Configuration
$wgPageImagesBlacklist is an array of sources for image blacklists. Blacklisted images will never be selected as page images. Examples: More than one source can be used at the same time.

$wgPageImagesBlacklistExpiry determines how long the blacklist will remain cached, in seconds. Default: 15 * 60 (15 minutes).

$wgPageImagesExpandOpenSearchXml if set to true, PageImages will override Extension:OpenSearchXml's image detection with its own, more accurate results. Default: false.

$wgPageImagesNamespaces is an array of namespaces PageImages will be activated on. Default: NS_MAIN.