ORF
image/x-raw-olympus
Magic Bytes
Offset: 0
49 49 52 4F
The Olympus Raw Format (ORF) is a proprietary raw image file format developed by Olympus Corporation for use in its digital cameras. It stores unprocessed data directly from the camera sensor, allowing photographers to perform extensive post-processing adjustments such as exposure correction and white balance tuning. Although generally considered safe, the format is largely hardware-specific and is increasingly associated with legacy devices following the brand's transition to OM System.
Validation Code
How to validate .orf files in Python
Python
def is_orf(file_path: str) -> bool:
"""Check if file is a valid ORF by magic bytes."""
signature = bytes([0x49, 0x49, 0x52, 0x4F])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .orf files in Node.js
Node.js
function isORF(buffer: Buffer): boolean {
const signature = Buffer.from([0x49, 0x49, 0x52, 0x4F]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsORF(data []byte) bool {
signature := []byte{0x49, 0x49, 0x52, 0x4F}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/orf
curl https://filesignature.org/api/v1/orf