harrydb / go

12 stars 8 forks source link

PBM decoding now produces a paletted image. #5

Open extemporalgenome opened 10 years ago

extemporalgenome commented 10 years ago

This reduces a pbm -> png conversion with testdata pbm images from 56kB to 36kB (36% size reduction). If image/png is optimized for 1-bit colormaps, there'll be an additional free reduction to 28kB (50% size reduction from the original grayscale).