fitsppm converts a FITS file to 8-bit pixels, then to PPM format. Dynamic range is lost in the process. This is useful to build image files to exchange data with other image processing commands.
fitsppm man page