Skip to main content

Function: parse()

parse(bytes): IccMetadata

Parse human-readable profile metadata compatible with npm icc 4.0.0. Accepts Uint8Array and Node Buffer, including sliced views. Unlike readIccProfile, requires an exact declared profile length with no trailing bytes. Returns readIccMetadata fields without performing pixel color transforms. Unknown header versions and rendering intents return undefined. Tag-local bounds and Unicode are validated; malformed data accepted by icc may be rejected. Use the raw reader/writer to preserve uninterpreted tags.

Parameters​

bytes​

Uint8Array

Complete raw ICC profile with an exact declared length.

Returns​

IccMetadata

Friendly header and descriptive tag metadata.