{"success":true,"data":{"ext":"xcf","name":"GNU Image Manipulation Program","description":"GNU Image Manipulation Program (GIMP) XCF is the native image project format created and maintained by the GIMP development team. It is used to save editable raster graphics, including layers, masks, channels, paths, and other project data for ongoing image editing in GIMP and compatible software. The format is generally safe, though it is intended for editing workflows rather than finalized distribution; users should still open files from trusted sources.","mime":["image/x-xcf"],"risk_level":"Safe","signatures":[{"hex":"67 69 6D 70 20 78 63 66 20","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"67 69 6D 70 20 78 63 66","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":["avif","bmp","cr2","cr3","dib","exr"],"usage":{"python":"def is_xcf(file_path: str) -> bool:\n    \"\"\"Check if file is a valid XCF by magic bytes.\"\"\"\n    signature = bytes([0x67, 0x69, 0x6D, 0x70, 0x20, 0x78, 0x63, 0x66, 0x20])\n    with open(file_path, \"rb\") as f:\n        return f.read(9) == signature","node":"function isXCF(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x67, 0x69, 0x6D, 0x70, 0x20, 0x78, 0x63, 0x66, 0x20]);\n  return buffer.subarray(0, 9).equals(signature);\n}","go":"func IsXCF(data []byte) bool {\n    signature := []byte{0x67, 0x69, 0x6D, 0x70, 0x20, 0x78, 0x63, 0x66, 0x20}\n    if len(data) < 9 {\n        return false\n    }\n    return bytes.Equal(data[:9], signature)\n}"},"category":"Images"}}