{"success":true,"data":{"ext":"img","name":"Ventura Publisher/GEM VDI Image Format Bitmap file","description":"The IMG format is a bitmap image file used by Ventura Publisher and the GEM VDI graphics subsystem, originally developed in the late 1980s by Xerox Ventura and Digital Research. It was used for storing simple raster images in desktop publishing and GEM-based applications. The format is legacy and largely obsolete; files are generally safe to open, though support is limited in modern software.","mime":[],"risk_level":"Safe","signatures":[{"hex":"00 01 00 08 00 01 00 01 01","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"50 49 43 54 00 08","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"51 46 49 FB","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"53 43 4D 49","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"7E 74 2C 01 50 70 02 4D 52 01 00 00 00 08 00 00 00 01 00 00 31 00 00 00 31 00 00 00 43 01 FF 00 01 00 08 00 01 00 00 00 7E 74 2C 01","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]},{"hex":"EB 3C 90 2A","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["vdi","adf","bin","dmg","g64","iso"],"usage":{"python":"def is_img(file_path: str) -> bool:\n    \"\"\"Check if file is a valid IMG by magic bytes.\"\"\"\n    signature = bytes([0x00, 0x01, 0x00, 0x08, 0x00, 0x01, 0x00, 0x01, 0x01])\n    with open(file_path, \"rb\") as f:\n        return f.read(9) == signature","node":"function isIMG(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x00, 0x01, 0x00, 0x08, 0x00, 0x01, 0x00, 0x01, 0x01]);\n  return buffer.subarray(0, 9).equals(signature);\n}","go":"func IsIMG(data []byte) bool {\n    signature := []byte{0x00, 0x01, 0x00, 0x08, 0x00, 0x01, 0x00, 0x01, 0x01}\n    if len(data) < 9 {\n        return false\n    }\n    return bytes.Equal(data[:9], signature)\n}"},"category":"Disk Images"}}