Show Partner graphics file
application/octet-stream
Magic Bytes
Offset: 0
47 65 6E 65 74 65 63 20 4F 6D 6E 69 63 61 73 74
The Show Partner graphics file format is a legacy bitmap image standard developed by Brightbill-Roberts for the Show Partner F/X multimedia software. It was historically employed for creating electronic presentations and slideshows on MS-DOS operating systems during the late 1980s. Because this format is obsolete and lacks support in modern image viewers, accessing its contents typically requires specific conversion utilities or emulation environments, though it presents negligible security threats.
Validation Code
How to validate .gx2 files in Python
Python
def is_gx2(file_path: str) -> bool:
"""Check if file is a valid GX2 by magic bytes."""
signature = bytes([0x47, 0x65, 0x6E, 0x65, 0x74, 0x65, 0x63, 0x20, 0x4F, 0x6D, 0x6E, 0x69, 0x63, 0x61, 0x73, 0x74])
with open(file_path, "rb") as f:
return f.read(16) == signature
How to validate .gx2 files in Node.js
Node.js
function isGX2(buffer: Buffer): boolean {
const signature = Buffer.from([0x47, 0x65, 0x6E, 0x65, 0x74, 0x65, 0x63, 0x20, 0x4F, 0x6D, 0x6E, 0x69, 0x63, 0x61, 0x73, 0x74]);
return buffer.subarray(0, 16).equals(signature);
}
Go
func IsGX2(data []byte) bool {
signature := []byte{0x47, 0x65, 0x6E, 0x65, 0x74, 0x65, 0x63, 0x20, 0x4F, 0x6D, 0x6E, 0x69, 0x63, 0x61, 0x73, 0x74}
if len(data) < 16 {
return false
}
return bytes.Equal(data[:16], signature)
}
API Endpoint
GET
/api/v1/gx2
curl https://filesignature.org/api/v1/gx2