Ventura Publisher/GEM VDI Image Format Bitmap file
application/octet-stream
Magic Bytes
Offset: 0
00 01 01
The GEM VDI Image Format (IMG) is a legacy bitmap file structure originally developed by Digital Research for the GEM environment and heavily utilized by Ventura Publisher. This raster format was primarily employed to store monochrome line art, scanned images, and graphical elements for early desktop publishing workflows. While the file type poses minimal security risks due to its simple architecture, it is currently obsolete and requires specialized conversion tools to view on modern operating systems.
Validation Code
How to validate .img files in Python
Python
def is_img(file_path: str) -> bool:
"""Check if file is a valid IMG by magic bytes."""
signature = bytes([0x00, 0x01, 0x01])
with open(file_path, "rb") as f:
return f.read(3) == signature
How to validate .img files in Node.js
Node.js
function isIMG(buffer: Buffer): boolean {
const signature = Buffer.from([0x00, 0x01, 0x01]);
return buffer.subarray(0, 3).equals(signature);
}
Go
func IsIMG(data []byte) bool {
signature := []byte{0x00, 0x01, 0x01}
if len(data) < 3 {
return false
}
return bytes.Equal(data[:3], signature)
}
API Endpoint
GET
/api/v1/img
curl https://filesignature.org/api/v1/img