Silicon Graphics RGB Bitmap

image/x-rgb

Safe

Magic Bytes

Offset: 0
01 DA 01 01 00 03

Silicon Graphics RGB Bitmap is a raster image format developed by Silicon Graphics for use on their high-performance computing workstations. It was primarily utilized for storing color image data, textures, and video frames within professional visual effects and scientific visualization software environments. Although this legacy format is now largely obsolete, it remains compatible with various open-source imaging libraries and specialized graphics applications for archival and historical purposes.

Extension

.rgb

MIME Type

image/x-rgb

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .rgb files in Python

Python
def is_rgb(file_path: str) -> bool:
    """Check if file is a valid RGB by magic bytes."""
    signature = bytes([0x01, 0xDA, 0x01, 0x01, 0x00, 0x03])
    with open(file_path, "rb") as f:
        return f.read(6) == signature

How to validate .rgb files in Node.js

Node.js
function isRGB(buffer: Buffer): boolean {
  const signature = Buffer.from([0x01, 0xDA, 0x01, 0x01, 0x00, 0x03]);
  return buffer.subarray(0, 6).equals(signature);
}
Go
func IsRGB(data []byte) bool {
    signature := []byte{0x01, 0xDA, 0x01, 0x01, 0x00, 0x03}
    if len(data) < 6 {
        return false
    }
    return bytes.Equal(data[:6], signature)
}

API Endpoint

GET /api/v1/rgb
curl https://filesignature.org/api/v1/rgb

Related Formats