MediaWiki REL1_37
PNGMetadataExtractor Class Reference

PNG frame counter. More...

Static Public Member Functions

static getMetadata ( $filename)
 

Public Attributes

const VERSION = 1
 

Static Private Member Functions

static read ( $fh, $size)
 Read a chunk, checking to make sure its not too big.
 

Private Attributes

const MAX_CHUNK_SIZE = 3145728
 

Static Private Attributes

static int $crcSize
 
static string $pngSig
 
static array $textChunks
 

Detailed Description

PNG frame counter.

Definition at line 33 of file PNGMetadataExtractor.php.

Member Function Documentation

◆ getMetadata()

static PNGMetadataExtractor::getMetadata (   $filename)
static

Definition at line 46 of file PNGMetadataExtractor.php.

References $content, $t, read(), wfDebug(), and wfTimestamp().

Referenced by BitmapMetadataHandler\PNG().

◆ read()

static PNGMetadataExtractor::read (   $fh,
  $size 
)
staticprivate

Read a chunk, checking to make sure its not too big.

Parameters
resource$fhThe file handle
int$sizeSize in bytes.
Exceptions
ExceptionIf too big
Returns
string The chunk.

Definition at line 406 of file PNGMetadataExtractor.php.

Referenced by getMetadata().

Member Data Documentation

◆ $crcSize

int PNGMetadataExtractor::$crcSize
staticprivate

Definition at line 38 of file PNGMetadataExtractor.php.

◆ $pngSig

string PNGMetadataExtractor::$pngSig
staticprivate

Definition at line 35 of file PNGMetadataExtractor.php.

◆ $textChunks

array PNGMetadataExtractor::$textChunks
staticprivate

Definition at line 41 of file PNGMetadataExtractor.php.

◆ MAX_CHUNK_SIZE

const PNGMetadataExtractor::MAX_CHUNK_SIZE = 3145728
private

Definition at line 44 of file PNGMetadataExtractor.php.

◆ VERSION

const PNGMetadataExtractor::VERSION = 1

The documentation for this class was generated from the following file: