PHP Class Faster_Image_B52f1a8_Image_Parser, amp-wp

Exibir arquivo Open project: Automattic/amp-wp Class Usage Examples

Protected Properties

Property Type Description
$type string The type of image we've determined this is

Public Methods

Method Description
__construct ( Stream_17b32f3_Streamable_Interface &$stream ) ImageParser constructor.
parseSize ( ) : array | boolean | null
parseSizeForIco ( ) : array
parseType ( ) : boolean | string Reads and returns the type of the image

Protected Methods

Method Description
parseSizeForBMP ( ) : array
parseSizeForGIF ( ) : array
parseSizeForJPEG ( ) : array | boolean
parseSizeForPNG ( ) : array
parseSizeForPSD ( ) : array
parseSizeForTiff ( ) : array | boolean
parseSizeForWebp ( ) : null

Private Methods

Method Description
getByte ( ) : mixed
readByte ( $string ) : mixed
readInt ( $str ) : integer

Method Details

__construct() public method

ImageParser constructor.
public __construct ( Stream_17b32f3_Streamable_Interface &$stream )
$stream Stream_17b32f3_Streamable_Interface

parseSize() public method

public parseSize ( ) : array | boolean | null
return array | boolean | null

parseSizeForBMP() protected method

protected parseSizeForBMP ( ) : array
return array

parseSizeForGIF() protected method

protected parseSizeForGIF ( ) : array
return array

parseSizeForIco() public method

public parseSizeForIco ( ) : array
return array

parseSizeForJPEG() protected method

protected parseSizeForJPEG ( ) : array | boolean
return array | boolean

parseSizeForPNG() protected method

protected parseSizeForPNG ( ) : array
return array

parseSizeForPSD() protected method

protected parseSizeForPSD ( ) : array
return array

parseSizeForTiff() protected method

protected parseSizeForTiff ( ) : array | boolean
return array | boolean

parseSizeForWebp() protected method

protected parseSizeForWebp ( ) : null
return null

parseType() public method

Reads and returns the type of the image
public parseType ( ) : boolean | string
return boolean | string

Property Details

$type protected_oe property

The type of image we've determined this is
protected string $type
return string