Function: readIccProfile()
readIccProfile(
bytes):IccProfile
Read ICC v2/v4 profile data, validating the header and tag bounds. Tag payloads are retained opaquely, including LUT, CMYK, gray, multichannel, and unknown/private tags. Parsing a profile does not evaluate curves or transform pixels. Returned byte arrays do not alias the input.
Parameters
bytes
Uint8Array
Complete raw ICC profile bytes, without JPEG APP2 framing.
Returns
Header bytes and ordered tag payloads for inspection or editing.
Throws
If the header, declared size, or tag bounds are invalid.