def write(self, fptr):
self._write_validate()<EOL>length = <NUM_LIT:15> if self.icc_profile is None else <NUM_LIT:11> + len(self.icc_profile)<EOL>fptr.write(struct.pack('<STR_LIT>', length, b'<STR_LIT>'))<EOL>read_buffer = struct.pack('<STR_LIT>',<EOL>self.method,<EOL>self.precedence,<EOL>self.approximation,<EOL>self.colorspace)<EOL>fptr.write(read_buffer)<EOL>
Write an Colour Specification box to file.