* Alexandre Emsenhuber
* Aryeh Gregor
* Brion Vibber
+* Bryan Tong Minh
* Chad Horohoe
* Greg Sabino Mullane
* Hojjat
or other engine which doesn't support a separate title search function.
This means you can use API search on Wikipedia without explicitly adding
&srwhat=text to the query.
+* Added iiprop=bitdepth to imageinfo and aiprop=bitdepth to allimages
=== Languages updated in 1.14 ===
'dimensions', // Obsolete
'mime',
'sha1',
- 'metadata'
+ 'metadata',
+ 'bitdepth',
),
ApiBase :: PARAM_DFLT => 'timestamp|url',
ApiBase :: PARAM_ISMULTI => true
if( isset( $prop['archivename'] ) && $file->isOld() )
$vals['archivename'] = $file->getArchiveName();
+
+ if( isset( $prop['bitdepth'] ) )
+ $vals['bitdepth'] = $file->getBitDepth();
return $vals;
}
'sha1',
'mime',
'metadata',
- 'archivename'
+ 'archivename',
+ 'bitdepth',
)
),
'limit' => array(
* Overridden by LocalFile, UnregisteredLocalFile
* STUB
*/
- function getMetadata() { return false; }
+ public function getMetadata() { return false; }
+
+ /**
+ * Return the bit depth of the file
+ * Overridden by LocalFile
+ * STUB
+ */
+ public function getBitDepth() { return 0; }
/**
* Return the size of the image file, in bytes
return $this->metadata;
}
+ function getBitDepth() {
+ $this->load();
+ return $this->bits;
+ }
+
/**
* Return the size of the image file, in bytes
* @public