PPM Image File Format - PowerPoint PPT Presentation

1 / 4
About This Presentation
Title:

PPM Image File Format

Description:

Binary PPM File Format. Format Difference. The magic number is P6, instead of P3 ... Converters. convert. giftoppm, ppmtogif. ppmtopict, picttoppm. ppmtotga, ... – PowerPoint PPT presentation

Number of Views:343
Avg rating:3.0/5.0
Slides: 5
Provided by: naeems
Category:
Tags: ppm | converter | file | format | image

less

Transcript and Presenter's Notes

Title: PPM Image File Format


1
PPM Image File Format
2
The Portable Pixmap (PPM) File Format
  • This is the ASCII file format
  • P3
  • feep.ppm
  • 4 4
  • 255
  • 0 0 0 0 0 0 0 0 0 14 0 5
  • 0 0 0 0 62 7 0 0 0 0 0 0
  • 0 0 0 0 0 0 0 63 7 0 0 0
  • 15 0 78 0 0 0 0 0 0 0 0 0


Magic Number (identifies the file
type) Comment Width Height Maximum
Intensity Pixel Data Topleft
image RGB 0Max
3
Binary PPM File Format
  • Format Difference
  • The magic number is P6, instead of P3
  • Pixel values stored as bytes, instead of ASCII
    decimal
  • A single whitespace character (typically
    newline) follows the maximum intensity
  • No whitespace allowed in the pixel data area
  • Files are smaller Þ many times faster to read
    and write
  • Note that this raw format can only be used for
    intensities less than or equal to 255

4
Some Useful Unix Image Utilities
Converters convert giftoppm, ppmtogif ppmtopict,
picttoppm ppmtotga, tgatoppm
Viewers display gqview gimp
Write a Comment
User Comments (0)
About PowerShow.com