MediaWiki  REL1_22
PNGMetadataExtractor Class Reference

PNG frame counter. More...

List of all members.

Static Public Member Functions

static getMetadata ($filename)

Public Attributes

const MAX_CHUNK_SIZE = 3145728
const VERSION = 1

Static Public Attributes

static $CRC_size
static $png_sig
static $text_chunks

Static Private Member Functions

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

Detailed Description

PNG frame counter.

Definition at line 33 of file PNGMetadataExtractor.php.


Member Function Documentation

static PNGMetadataExtractor::read ( fh,
size 
) [static, private]

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

Parameters:
$fhresource The file handle
$sizeInteger size in bytes.
Exceptions:
Exceptionif too big.
Returns:
String The chunk.

Definition at line 420 of file PNGMetadataExtractor.php.

References $size.

Referenced by getMetadata().


Member Data Documentation

PNGMetadataExtractor::$CRC_size [static]

Definition at line 35 of file PNGMetadataExtractor.php.

PNGMetadataExtractor::$png_sig [static]

Definition at line 34 of file PNGMetadataExtractor.php.

PNGMetadataExtractor::$text_chunks [static]

Definition at line 36 of file PNGMetadataExtractor.php.

Definition at line 39 of file PNGMetadataExtractor.php.


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