PNG structure validation functions
Methods
(static) validateIEND(chunk) → {null|string}
Validate IEND chunk struct
Parameters:
| Name | Type | Description |
|---|---|---|
chunk |
Chunk | The chunk to validate |
- Source:
Returns:
- Error message or null
- Type
- null | string
(static) validateIHDR(chunk) → {null|string}
Validate IHDR chunk struct
Parameters:
| Name | Type | Description |
|---|---|---|
chunk |
Chunk | The chunk to validate |
- Source:
Returns:
- Error message or null
- Type
- null | string
(static) validatePNGSignature(buff) → {string|null}
Validates that the buffer provided is a PNG stream
Parameters:
| Name | Type | Description |
|---|---|---|
buff |
Buffer | The PNG raw buffer |
- Source:
Returns:
- The error message or null
- Type
- string | null