PPM Conversion

The Portable Pixel Map (PPM) format for a graphics image allows you to create a wide variety of graphics files by using the netpbm suite of programs.

The programs in this directory create PPM files in compressed format. The compression ratio can be as high as 99.5%. To uncompress a PPM file, use...

Netpbm

The netpbm suite of programs allow you to convert between different graphic formats. Below is a partial list of formats with sample commands.

The command in the second column is based on a compressed image of the solar calendar. zcat uncompresses the file and pipes the output to the conversion program.

Format Program
JPEG zcat solcal.ppm.gz | ppmtojpeg >solcal.jpg
PNG zcat solcal.ppm.gz | pnmtopng >solcal.png
TIFF zcat solcal.ppm.gz | pnmtotiff >solcal.tif
PGM zcat solcal.ppm.gz | ppmtopgm >solcal.pgm
PBM pgmtopbm <solcal.pgm >solcal.pbm
G3 pbmtog3 <solcal.pbm >solcal.g3
GIF zcat solcal.ppm.gz | ppmtogif >solcal.gif

The Image Magick program mogrify also allows you to convert the file format. See the table below.

The command in the second column is based on a PPM image of the solar calendar.

Format Program
JPEG mogrify -format jpeg solcal.ppm
PNG mogrify -format png solcal.ppm
TIFF mogrify -format tiff solcal.ppm
PGM mogrify -format pgm solcal.ppm
PBM mogrify -format pbm solcal.ppm
FAX mogrify -format fax solcal.ppm
GIF mogrify -format gif solcal.ppm


Solar Calendar     Azimuth Graph     PPM Viewer