Easy Street Draw diagram file
application/octet-stream
Magic Bytes
Offset: 0
4D 53 57 49 4D 00 00 00 D0 00 00 00 00
Easy Street Draw (ESD) is a proprietary vector graphics format developed by Tritech Software Systems for precision diagramming and scene reconstruction. Public safety agencies and insurance investigators utilize these files to create detailed schematics of traffic accidents and crime scenes using specialized symbol libraries. Although considered a low-risk format, users should distinguish it from Microsoft Electronic Software Delivery files, which share the same extension but utilize entirely different compression standards.
Validation Code
How to validate .esd files in Python
Python
def is_esd(file_path: str) -> bool:
"""Check if file is a valid ESD by magic bytes."""
signature = bytes([0x4D, 0x53, 0x57, 0x49, 0x4D, 0x00, 0x00, 0x00, 0xD0, 0x00, 0x00, 0x00, 0x00])
with open(file_path, "rb") as f:
return f.read(13) == signature
How to validate .esd files in Node.js
Node.js
function isESD(buffer: Buffer): boolean {
const signature = Buffer.from([0x4D, 0x53, 0x57, 0x49, 0x4D, 0x00, 0x00, 0x00, 0xD0, 0x00, 0x00, 0x00, 0x00]);
return buffer.subarray(0, 13).equals(signature);
}
Go
func IsESD(data []byte) bool {
signature := []byte{0x4D, 0x53, 0x57, 0x49, 0x4D, 0x00, 0x00, 0x00, 0xD0, 0x00, 0x00, 0x00, 0x00}
if len(data) < 13 {
return false
}
return bytes.Equal(data[:13], signature)
}
API Endpoint
GET
/api/v1/esd
curl https://filesignature.org/api/v1/esd