* @param File $file
* @return bool
*/
- function canRender( $file ) {
+ public function canRender( $file ) {
global $wgTiffThumbnailType;
return (bool)$wgTiffThumbnailType
* @param File $file
* @return bool
*/
- function mustRender( $file ) {
+ public function mustRender( $file ) {
return true;
}
}
/**
- * @param File $image
+ * @param File|FSFile $image
* @param string $filename
* @throws MWException
* @return string
*/
function getMetadata( $image, $filename ) {
global $wgShowEXIF;
+
if ( $wgShowEXIF ) {
try {
$meta = BitmapMetadataHandler::Tiff( $filename );