Vincent Berthoux
Vincent Berthoux
I also found myself abusing it in the test cases, but i guess adding a deprecated pragma is way to go with a bump of the documentation
After a quick glance at the format definition, it shouldn't be too hard, maybe some refactoring to expose the BMP structures is required.
Right now, the answer is clearly no, every format working at bit level, violently extract a big bytestring from binary and put it in a bit reader structure (for performance...
The problem is that it's the TGA file reader which is tried last for loading the file, and as TGA hasn't any signature in it's header, it will only check...
There is none right now, the method to do this it in the case 16bit -> 8bit is to perform a bit shift to keep only the high value bits...
Ah, you make me remember there is [Codec.Picture.ColorQuant](http://hackage.haskell.org/package/JuicyPixels-3.2.5.3/docs/Codec-Picture-ColorQuant.html) if you want to generate an acceptable palette, it's used for GIF saving.
Do you have a test image for testing?
it would be wonderful
Is this a whining about the readme or a real need for netpbm? As they are one of the most inefficient format around, I'm not inclined to implement it, as...
I'd gladly accept a pull request implementing the format, with the following restriction: no new package dependency, I really want to keep dependencies for this package to a minimum.