ICB
image/x-tga
Magic Bytes
Offset: 1
01 01 00 00
The ICB file format is a legacy raster graphics bitmap associated with Truevision's Image Capture Board hardware, serving as a specialized extension of the Targa (TGA) specification. Historically, these files were utilized for high-quality video capture and editing workflows, storing uncompressed or RLE-compressed image data. While modern applications primarily use the standard TGA extension, many contemporary image editors retain backward compatibility to view or convert these historical assets.
Validation Code
How to validate .icb files in Python
Python
def is_icb(file_path: str) -> bool:
"""
Check if file is a valid ICB by magic bytes.
Signature offset: 1 bytes
"""
signature = bytes([0x01, 0x01, 0x00, 0x00])
with open(file_path, "rb") as f:
f.seek(1)
return f.read(4) == signature
How to validate .icb files in Node.js
Node.js
function isICB(buffer: Buffer): boolean {
// Signature offset: 1 bytes
const signature = Buffer.from([0x01, 0x01, 0x00, 0x00]);
if (buffer.length < 5) return false;
return buffer.subarray(1, 5).equals(signature);
}
Go
func IsICB(data []byte) bool {
// Signature offset: 1 bytes
signature := []byte{0x01, 0x01, 0x00, 0x00}
if len(data) < 5 {
return false
}
return bytes.Equal(data[1:5], signature)
}
API Endpoint
GET
/api/v1/icb
curl https://filesignature.org/api/v1/icb