This program is part of Netpbm.
pbmtomrf converts a PBM image to MRF format.
For more information about mrf, see the MRF specification.
pbmtomrf takes the PBM image from the file named by the input.pbm argument, or Standard Input if you don't specify input.pbm. The output goes to Standard Output.
The compression of the edges of pictures with width and/or height not an exact multiple of 64 is not optimal in all cases.