You are not logged in. Login or Signup
Home » Messageboard » XXX » Message 3806385 (Thread)

# It's sequences of colours that are made into letters.
The actual codes that end up in a gif that has a solid black line in it would look 1a, 2a, 3a, 4a, 5a, 6a, etc. though I forget why that is.
The gif is treated as one long string, wrapping at the end of lines. (it also clears the code table and starts again every so many bytes codes, 4095 I think.) So if you could align the black scanlines with the sequences of colours that get encoded, you'd get even better compression. This is presumably what lossy gif optimisation does, which is why you get seemingly random bits of horizontal line everywhere on a highly compressed gif.
Since it's sequences of colours that are encoded, you could also potentially optimise the gif using multi-coloured scan lines.
(, Sun 10 Oct 2004, 19:50, archived)