Convert a PBM image to a MDA file
pbmtomda path/to/image.pbm > path/to/output.mdaInvert the colors in the input image
pbmtomda -i path/to/image.pbm > path/to/output.mdaHalve the input image's height
pbmtomda -d path/to/image.pbm > path/to/output.mda