FLIC Animation file
application/octet-stream
Magic Bytes
Offset: 0
00 14 00 00 01 02 03
The FLIC Animation file is a legacy raster animation format originally developed by Autodesk for use with the Autodesk Animator software. It was primarily designed to store short, looped animation sequences and computer-aided design presentations limited to a resolution of 320x200 pixels. While the format is now obsolete and superseded by the more capable FLC standard, it remains supported by some retro-computing tools and media players.
Validation Code
How to validate .fli files in Python
Python
def is_fli(file_path: str) -> bool:
"""Check if file is a valid FLI by magic bytes."""
signature = bytes([0x00, 0x14, 0x00, 0x00, 0x01, 0x02, 0x03])
with open(file_path, "rb") as f:
return f.read(7) == signature
How to validate .fli files in Node.js
Node.js
function isFLI(buffer: Buffer): boolean {
const signature = Buffer.from([0x00, 0x14, 0x00, 0x00, 0x01, 0x02, 0x03]);
return buffer.subarray(0, 7).equals(signature);
}
Go
func IsFLI(data []byte) bool {
signature := []byte{0x00, 0x14, 0x00, 0x00, 0x01, 0x02, 0x03}
if len(data) < 7 {
return false
}
return bytes.Equal(data[:7], signature)
}
API Endpoint
GET
/api/v1/fli
curl https://filesignature.org/api/v1/fli