Skip to main content

Function: writeIccProfile()

writeIccProfile(profile): Uint8Array

Serialize a parsed or edited profile, preserving tag order and opaque payloads. Rebuilds offsets, lengths, and four-byte alignment. Clears the stale profile ID without computing a replacement MD5 ID. Padding, layout, and whole-file byte identity are not preserved; keep the original bytes for byte-exact transport.

Parameters​

profile​

IccProfile

Raw header and ordered tag payloads, typically from readIccProfile.

Returns​

Uint8Array

Complete ICC profile bytes with rebuilt layout.