ACBM
application/octet-stream
Magic Bytes
Offset: 0
46 4F 52 4D 41 43 42 4D
Amiga Contiguous Bitmap (ACBM) is a legacy raster graphics file format derived from the Electronic Arts Interchange File Format (IFF) standard for Commodore Amiga systems. It was primarily utilized by specific graphics editing software and BASIC compilers to optimize loading efficiency by storing image data in contiguous, non-interleaved bitplanes. While currently obsolete, the format remains supported by retro-computing conversion tools and poses minimal security risks due to its simple, static structural design.
Validation Code
How to validate .acbm files in Python
Python
def is_acbm(file_path: str) -> bool:
"""Check if file is a valid ACBM by magic bytes."""
signature = bytes([0x46, 0x4F, 0x52, 0x4D, 0x41, 0x43, 0x42, 0x4D])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .acbm files in Node.js
Node.js
function isACBM(buffer: Buffer): boolean {
const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D, 0x41, 0x43, 0x42, 0x4D]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsACBM(data []byte) bool {
signature := []byte{0x46, 0x4F, 0x52, 0x4D, 0x41, 0x43, 0x42, 0x4D}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/acbm
curl https://filesignature.org/api/v1/acbm