LBM
application/octet-stream
Magic Bytes
Offset: 0
46 4F 52 4D 49 4C 42 4D
The LBM file format, technically known as Interleaved Bitmap (ILBM), is a raster graphics standard compliant with the Interchange File Format (IFF) developed by Electronic Arts. Originally designed for Commodore Amiga systems, it served as the native format for the influential Deluxe Paint software and was widely used in early PC games for storing sprites and background assets. Although now a legacy format largely superseded by PNG, LBM files remain relevant for retro-computing enthusiasts and digital preservation projects.
Validation Code
How to validate .lbm files in Python
Python
def is_lbm(file_path: str) -> bool:
"""Check if file is a valid LBM by magic bytes."""
signature = bytes([0x46, 0x4F, 0x52, 0x4D, 0x49, 0x4C, 0x42, 0x4D])
with open(file_path, "rb") as f:
return f.read(8) == signature
How to validate .lbm files in Node.js
Node.js
function isLBM(buffer: Buffer): boolean {
const signature = Buffer.from([0x46, 0x4F, 0x52, 0x4D, 0x49, 0x4C, 0x42, 0x4D]);
return buffer.subarray(0, 8).equals(signature);
}
Go
func IsLBM(data []byte) bool {
signature := []byte{0x46, 0x4F, 0x52, 0x4D, 0x49, 0x4C, 0x42, 0x4D}
if len(data) < 8 {
return false
}
return bytes.Equal(data[:8], signature)
}
API Endpoint
GET
/api/v1/lbm
curl https://filesignature.org/api/v1/lbm