{"success":true,"data":{"ext":"icm","name":"ICM","description":"ICM is an International Color Consortium color profile file format maintained by the ICC and used by operating systems and color management software to describe how a device reproduces color. It is used to ensure consistent color rendering in printers, displays, scanners, digital imaging workflows, and publishing applications. The format is generally safe and has long been supported on Windows; it is not considered a legacy format, though malformed profiles can affect color handling.","mime":["application/vnd.iccprofile"],"risk_level":"Safe","signatures":[{"hex":"61 63 73 70","offset":36,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"4B 43 4D 53","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["icc"],"usage":{"python":"def is_icm(file_path: str) -> bool:\n    \"\"\"Check if file is a valid ICM by magic bytes at offset 36.\"\"\"\n    signature = bytes([0x61, 0x63, 0x73, 0x70])\n    with open(file_path, \"rb\") as f:\n        f.seek(36)\n        return f.read(4) == signature","node":"function isICM(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x61, 0x63, 0x73, 0x70]);\n  if (buffer.length < 40) return false;\n  return buffer.subarray(36, 40).equals(signature);\n}","go":"func IsICM(data []byte) bool {\n    signature := []byte{0x61, 0x63, 0x73, 0x70}\n    if len(data) < 40 {\n        return false\n    }\n    return bytes.Equal(data[36:40], signature)\n}"}}}