26 private const EXPENSIVE_SIZE_LIMIT = 10_485_760;
43 return (
bool)$tiffThumbnailType
68 return $tiffThumbnailType;
77 if ( !is_array( $meta ) ) {
82 'width' => $meta[
'ImageWidth'] ?? 0,
83 'height' => $meta[
'ImageLength'] ?? 0,
88 $info[
'metadata'] = $meta;
94 wfDebug( __METHOD__ .
': ' . $e->getMessage() );
102 return $file->getSize() > static::EXPENSIVE_SIZE_LIMIT;
107class_alias( TiffHandler::class,
'TiffHandler' );
wfDebug( $text, $dest='all', array $context=[])
Sends a line to the debug log if enabled or, optionally, to a comment in output.
A class containing constants representing the names of configuration variables.
const ShowEXIF
Name constant for the ShowEXIF setting, for use with Config::get()
const TiffThumbnailType
Name constant for the TiffThumbnailType setting, for use with Config::get()