ASCII PPM to binary PPM graphics file conversion

PPMA_TO_PPMB is a FORTRAN90 program which converts ASCII PPM files to binary PPM format.


ppma_to_ppmb file.ppma file.ppmb
reads the data in file.ppma and writes it to file.ppmb


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


PPMA_TO_PPMB is available in a C++ version and a FORTRAN90 version.

Related Programs:

PPMA, a data directory which contains a description and examples of ASCII PPM files.

PPMB, a data directory which contains sample binary PPM files.


  1. the NETPBM homepage.

Source Code:

List of Routines:

You can go up one level to the FORTRAN90 source codes.

Last revised on 25 January 2006.