PBMA Files
Portable Bit Map (ASCII)


PBMA is the ASCII version of the portable bitmap (PBM) format, a lowest common denominator monochrome file format. It was originally designed to make it reasonable to mail bitmaps between different types of machines. Now it serves as the common language of a large family of bitmap conversion filters. The definition is as follows:

The character '1' means black, '0' means white. Whitespace in the bits section is ignored. Characters from a "#" to the next end-of-line are ignored (comments). No line should be longer than 70 characters.

Example ASCII PBM file:

        P1
        # feep.pbm
        24 7
        0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
        0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 1 1 1 0
        0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 1 0
        0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 1 1 0
        0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0
        0 1 0 0 0 0 0 1 1 1 1 0 0 1 1 1 1 0 0 1 0 0 0 0
        0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
      

ASCII PBM File Characteristics:

Related Data and Programs:

The PBMB data directory describes binary Portable Bit Map files.

The PGMA data directory describes ASCII Portable Gray Map files.

The PPMA data directory describes ASCII Portable Pixel Map files.

Reference:

  1. the NETPBM homepage.

Programs to create an ASCII PBM file:

Programs and routines to read an ASCII PBM file:

Programs and routines to write an ASCII PBM file:

Programs to view an ASCII PBM file:

Programs to convert an ASCII PBM file to another format:

Programs to convert a file to ASCII PBM format:

Sample ASCII PBM files:

In some cases, the viewing program may be confused by the extension "pbma", which is simply my way of discriminating between ASCII PBM files and binary PBM files (which I give the extension "pbmb"). If your viewer doesn't want to display one of these files, you might have better luck by changing the file's extension to the more standard "pbm".

You can go up one level to the DATA page.


Last revised on 01 September 2006.