similar to prop=categories's clcategorie
* (bug 23834) Invalid "thumbwidth" and "thumbheight" in "imageinfo" query when
thumbnailing larger than original image
+* (bug 23835) Need "thumbmime" result in "imageinfo" query
=== Languages updated in 1.17 ===
$vals['thumbwidth'] = intval( $file->getWidth() );
$vals['thumbheight'] = intval( $file->getHeight() );
}
+
+ if ( isset( $prop['thumbmime'] ) ) {
+ $thumbFile = UnregisteredLocalFile::newFromPath( $mto->getPath(), false );
+ $vals['thumbmime'] = $thumbFile->getMimeType();
+ }
}
}
$vals['url'] = $file->getFullURL();
'dimensions', // For backwards compatibility with Allimages
'sha1',
'mime',
+ 'thumbmime',
'metadata',
'archivename',
'bitdepth',