{"success":true,"data":{"ext":"eps","name":"Adobe encapsulated PostScript file","description":"Encapsulated PostScript (EPS) is a graphics file format developed by Adobe and based on the PostScript page description language. It is used for vector illustrations, logos, layout exchange, and print production workflows, and is commonly supported by desktop publishing and illustration applications. As a legacy format, EPS may contain executable PostScript instructions, so files from untrusted sources should be opened with caution in software that properly restricts script execution.","mime":["application/postscript"],"risk_level":"Safe","signatures":[{"hex":"C5 D0 D3 C6","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":"25 21 50 53 2D 41 64 6F 62 65 2D 33 2E 30 20 45 50 53 46 2D 33 2E 30","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":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"25 21","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"}]},{"hex":"04 25 21","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"}]},{"hex":"25 21 50 53 2D 41 64 6F 62 65 2D 33 2E 31 20 45 50 53 46 2D 33 2E 30","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"25 21 50 53 2D 41 64 6F 62 65 2D 33 2E 30 20 45 50 53 46 2D 33 20 30","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["ai","ps","epsf","pdf","cdr","epub"],"usage":{"python":"def is_eps(file_path: str) -> bool:\n    \"\"\"Check if file is a valid EPS by magic bytes.\"\"\"\n    signature = bytes([0xC5, 0xD0, 0xD3, 0xC6])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isEPS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xC5, 0xD0, 0xD3, 0xC6]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsEPS(data []byte) bool {\n    signature := []byte{0xC5, 0xD0, 0xD3, 0xC6}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Images"}}