I tried to find why IrfanView is unable to play animated GIFs created by VirtualDub.
I created animated GIF as simple as possible which can demonstrate this problem.
While all browsers and programs I have tested play this GIF without problems, IV doesn't.
It looks like depending on GIF configuration IV has problem correctly show transparent color.
In the 2nd frame the black is transparent, but IV probably use yellow as transparent.
In the 3rd frame the black is transparent, but probably red is taken as transparent (so we see black from the 2nd frame instead of red).
It probably depends on GIF parameters:
- The GIF has no global palette, every frame has its own palette (VirtualDub use this approach)
- The palette(s) have 256 colors. I tried to make this GIF with only 8 colors, but IV plays it right.
- Probably depends on palette indices. Green, yellow and red colors have index 1, grey index 2, transparent color index 255.
Different indices has different results in IV.
Tested: IrfanView 4.40 - 32bit
VirtualDub 1.9.11
I created animated GIF as simple as possible which can demonstrate this problem.
While all browsers and programs I have tested play this GIF without problems, IV doesn't.
It looks like depending on GIF configuration IV has problem correctly show transparent color.
In the 2nd frame the black is transparent, but IV probably use yellow as transparent.
In the 3rd frame the black is transparent, but probably red is taken as transparent (so we see black from the 2nd frame instead of red).
It probably depends on GIF parameters:
- The GIF has no global palette, every frame has its own palette (VirtualDub use this approach)
- The palette(s) have 256 colors. I tried to make this GIF with only 8 colors, but IV plays it right.
- Probably depends on palette indices. Green, yellow and red colors have index 1, grey index 2, transparent color index 255.
Different indices has different results in IV.
Tested: IrfanView 4.40 - 32bit
VirtualDub 1.9.11
Comment