thegooglecodearchive / pypng

Automatically exported from code.google.com/p/pypng
0 stars 0 forks source link

Does not handle packed (1-bit) rasters. #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
PyPNG is able to read and write PNG files with bit depth 1.  But the rasters 
for these images have to 
be "flat".  One sequence element per pixel (in the case of a 1-bit image each 
element is either 0 or 
1, but the other cases where bitdepth < 8 are similar).

It would be good to present and get raster data in a packed format that has 8 
1-bit pixels per byte.

For one thing this format is often found inside other files and formats, so it 
is a natural way of 
getting at raster data sometimes.

Also, it can use less memory (which might be important for some applications).

It's also a format used internally by PyPNG (because it naturally arises out of 
the PNG format), so 
could be faster in some cases.

Original issue reported on code.google.com by d...@pobox.com on 24 Mar 2009 at 10:44

GoogleCodeExporter commented 9 years ago
Would also be a good start for Issue 29, handling PNM P4 format.

Original comment by d...@pobox.com on 24 Mar 2009 at 10:49