#File size
Ed, I'm not able to agree that cel files are smaller. Look at the
file sizes of these 2 320×200 animations.
JIM FLI 627,304
JIM FLC 636,922
JIM CEL 740,482
DINER FLC 133,684
DINER CEL 130,198
DINER FLI 98,693
The only consistency, which I expected, is that FLI files are smaller
than their 320×200 FLC counterparts. FLIC files need more
information about their resolutions. I would have expected CEL files
to have a larger size than FLICs though. CEL files need offset
information too. Here's something from Jim Kent, creator of the
formats:
CEL files come in two formats – one used in Animator and one used in
Animator Pro. The Animator CEL files are single frame only. The
Animator Pro CEL files are multi-frame and in fact are the same thing
as .FLC files with one additional chunk in the prefix that gives the
x/y offset of the Cel. I think the browser can ignore this.
Cel Files (.CEL and .PIC)
A cel file is a 32 byte header followed by the uncompressed color map
(768 bytes) followed by the uncompressed pixel image.
Here is the header –
Byte Offset Contents
0 Magic Number – 9119 Hexadecimal
2 Width of cel
4 Height of cel
6 Horizontal screen position of upper left corner
8 Vertical screen position
10 How many bits in a pixel – 8 in other words
11 compression type – always 0 for uncompressed
12 size in bytes of cel image – a 4 byte long word
16 16 bytes of zero reserved for future use.