Jbig2Parser
in package
FinalYes
Parse JBIG2 image headers.
JBIG2 is a bi-level (1-bit) image compression format used for scanned documents. The format has two variants:
- Sequential: file header + segments in order
- Embedded: segments only (used inside PDF streams — no file header)
This parser handles the file-based format with the standard 8-byte file header (0x974A4232 0D0A1A0A).
Page dimensions come from the Page Information segment (type 48).
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