PngParser
in package
FinalYes
Parse PNG IHDR chunk for dimensions, bit depth, and color type.
Also extracts ICC profiles from iCCP chunks. PNG alpha channels are detected since PDF handles transparency via SMask, not inline.
Table of Contents
Methods
Methods
parse()
public
static parse(string $data) : ImageInfo
Parameters
- $data : string
Return values
ImageInfoparseFile()
public
static parseFile(string $path) : ImageInfo
Parameters
- $path : string