News for hackers. Stuff that matters.
Re:FLIF – Free Lossless Image Format by mrob on Monday March 07, 2016 @11:13AM (#11239638)
I'd like to see some comparisons with palettized PNGs. All the demo images for poly-flif use more than 256 colors, but diagrams and line art sometimes use 256 colors or less, which means they can be stored in an 8-bit palettized PNG losslessly. People often forget about this when optimizing PNG sizes, and most graphics software saves as RGB by default even when the image will fit in 8-bit palettized.
Re:FLIF – Free Lossless Image Format by jonsneyers on Tuesday March 08, 2016 @11:32AM (#11246290)
FLIF can also do palettes, without arbitrary limits on the palette size. It will automatically use palettes if the image has sparse colors (and "color buckets" if it has too many colors for a palette but still relatively few). It tends to be better than PNG in terms of compression, also for palette images. I haven't looked at optimizing palette ordering yet though, so there is probably some more margin for improvement here.