Optimize GIF size by using only the number of bits needed in LZW codes
It was always storing images in 8bpp whatever the values of pixels are,
so the minimum LZW code size was 9 bits.
Now the bpp is chosen according to the maximum pixel value.
Please note that the Whole 256 color palette is still stored entirely,
so this commit doesn't change the user experience in anyway, except saving
a few bytes :)
Powered by Trac 1.6
By Edgewall Software
Visit the Trac open source project athttp://trac.edgewall.org/