*/
function getMimeType() {
if ( !isset( $this->mime ) ) {
- $magic = MimeMagic::singleton();
+ $magic = MediaWiki\MediaWikiServices::getInstance()->getMimeAnalyzer();
$this->mime = $magic->guessMimeType( $this->getLocalRefPath() );
}
}
/**
- * @return int
- */
+ * @return int
+ */
function getBitDepth() {
$gis = $this->getImageSize( $this->getLocalRefPath() );