stil / gif-endec

PHP GIF encoder and decoder
63 stars 16 forks source link

Corrupt file if local color tables #4

Closed chrisgraham closed 6 years ago

chrisgraham commented 8 years ago

If you load up an animated gif, then substitute the stream of each frame with that of an altered gif file, then re-save, it switches to local color tables (as expected), but it comes out corrupt. Something is wrong about the file format implementation I think, but I don't have time to trace through it. If I re-save with the same frame streams it works okay. If I hack the code to disable local color table saving it saves okay but with corrupt palette (as expected).

stil commented 6 years ago

Please provide sample image that causes crash. I will reopen this issue then.