Harvard Graphics symbol graphic
application/octet-stream
Magic Bytes
Offset: 0
41 4F 4C 20 46 65 65 64 62 61 67
Harvard Graphics symbol graphic (SYW) is a proprietary vector format developed by Software Publishing Corporation for use within the Harvard Graphics presentation software suite. These files primarily store reusable symbols, icons, and clip art images intended for insertion into slideshows and business reports. As a legacy format from the late twentieth century, it is largely obsolete and rarely encountered in modern workflows, though it remains safe for archival use due to its lack of executable code.
Validation Code
How to validate .syw files in Python
Python
def is_syw(file_path: str) -> bool:
"""Check if file is a valid SYW by magic bytes."""
signature = bytes([0x41, 0x4F, 0x4C, 0x20, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x67])
with open(file_path, "rb") as f:
return f.read(11) == signature
How to validate .syw files in Node.js
Node.js
function isSYW(buffer: Buffer): boolean {
const signature = Buffer.from([0x41, 0x4F, 0x4C, 0x20, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x67]);
return buffer.subarray(0, 11).equals(signature);
}
Go
func IsSYW(data []byte) bool {
signature := []byte{0x41, 0x4F, 0x4C, 0x20, 0x46, 0x65, 0x65, 0x64, 0x62, 0x61, 0x67}
if len(data) < 11 {
return false
}
return bytes.Equal(data[:11], signature)
}
API Endpoint
GET
/api/v1/syw
curl https://filesignature.org/api/v1/syw