Portable Pixmap

Portable Pixmap

Vorlage:Infobox Dateiformat/Wartung/Standard fehltVorlage:Infobox Dateiformat/Wartung/Website fehlt

Portable Pixmap
Gnome-mime-image-x-portable-pixmap.png
Dateiendung: .ppm
MIME-Type: image/x-portable-pixmap
Magische Zahl:

50 33 oder 50 36 hex
P3 oder P6

Entwickelt von: Sun Microsystems
Art: Rastergrafik

Portable Pixmap (PPM, Portable PixMap) ist ein Dateiformat zur Speicherung von Bilddaten im RGB-Farbraum. Es handelt sich hier um eine sogenannte Rastergrafik, die mit einer Farbtiefe von 24 Bit 16,7 Mio. Farben (binär) abgespeichert werden kann (im ASCII-Modus sind auch mehr Farben möglich).

Das PPM-Format wurde in den achtziger Jahren von Sun Microsystems definiert. Es kommt in zwei Varianten vor, ASCII und Binär.

Inhaltsverzeichnis

Aufbau einer PPM-Datei

ASCII-Format

  • als Whitespace sind Leerzeichen, Tab, CR und LF erlaubt
  • Kommentare beginnen mit # und gehen bis zum Ende der Zeile
  • die Zeilen sollten nicht länger als 70 Zeichen sein
  • alle Zahlen werden in ASCII in Dezimalschreibweise angegeben
Identifikation: 'P3'
Bildbreite
Bildhöhe
Maximalwert der Farbkomponenten
Bilddaten (Breite*Höhe)
Pro Pixel jeweils drei Dezimalwerte zwischen 0 und dem angegebenen Maximalwert.

Beispiel:

P3
# feep.ppm
4 4
15
0  0  0   0  0  0   0  0  0  15  0 15
0  0  0   0 15  7   0  0  0   0  0  0
0  0  0   0  0  0   0 15  7   0  0  0
15 0 15   0  0  0   0  0  0   0  0  0

Binär-Format

  • Identifikation ist 'P6'
  • die Pixeldaten werden in binärer Form gespeichert
  • innerhalb der Pixeldaten sind keine anderen Zeichen erlaubt
  • Vorteil: die Dateien sind kleiner und schneller zu lesen und zu schreiben
Identifikation: 'P6'
Bildbreite (ASCII Dezimal)
Bildhöhe (ASCII Dezimal)
Maximalwert der Farbkomponenten (ASCII Dezimal)
Bilddaten in binärer Form (Breite*Höhe)
Pro Pixel jeweils drei Werte (rot, grün und blau) zwischen 0 und dem angegebenen Maximalwert. Wenn der angegebene Maximalwert kleiner als 256 (kleiner gleich 255) ist, dann wird jeder Farbwert mit einem Byte angegeben, sonst mit zwei Byte. Die Manpage von PPM schreibt, dass Farbwerte größer als 255 erst seit der Änderung des PPM-Formates im April 2000 erlaubt sind. Ältere Bildbetrachter könnten daher Bilder mit 2 Byte großen Farbkomponenten falsch anzeigen.

Beispiel (in hexadezimaler Darstellung):

50 36 0a
34 20 34 0a
31 35 0a
00 00 00 00 00 00 00 00 00 0f 00 0f
00 00 00 00 0f 07 00 00 00 00 00 00
00 00 00 00 00 00 00 0f 07 00 00 00
0f 00 0f 00 00 00 00 00 00 00 00 00

Siehe auch

Weblinks


Wikimedia Foundation.

Игры ⚽ Нужна курсовая?

Schlagen Sie auch in anderen Wörterbüchern nach:

  • Portable pixmap — Extension .ppm, .pgm, .pbm, .pnm Type MIME image/x portable pixmap, graymap, bitmap, anymap all unofficial Développé par Jef Poskanzer Type de format Format de fichier graphique Origine de XPM …   Wikipédia en Français

  • Portable anymap — Portable pixmap Portable pixmap Extension de fichier .ppm, .pgm, .pbm, .pnm Type MIME image/x portable pixmap, graymap, bitmap, anymap all unofficial Développé par Jef Poskanzer Type de format Format de fichier graphique …   Wikipédia en Français

  • Portable bitmap — Portable pixmap Portable pixmap Extension de fichier .ppm, .pgm, .pbm, .pnm Type MIME image/x portable pixmap, graymap, bitmap, anymap all unofficial Développé par Jef Poskanzer Type de format Format de fichier graphique …   Wikipédia en Français

  • Portable graymap — Portable pixmap Portable pixmap Extension de fichier .ppm, .pgm, .pbm, .pnm Type MIME image/x portable pixmap, graymap, bitmap, anymap all unofficial Développé par Jef Poskanzer Type de format Format de fichier graphique …   Wikipédia en Français

  • Portable anymap — Portable pixmap Расширение .ppm, .pgm, .pbm, .pnm MIME image/x portable pixmap, graymap, bitmap, anymap все неофициальные Разработан Джеф Посканзер Тип формата Графические форматы У этого термина сущ …   Википедия

  • Portable Bitmap — Vorlage:Infobox Dateiformat/Wartung/Standard fehltVorlage:Infobox Dateiformat/Wartung/Website fehlt Portable Bitmap Dateiendung …   Deutsch Wikipedia

  • Portable Graymap — Name Portable GrayMap Abkürzung PGM Dateiendung .pgm Hersteller Sun Microsystems Farbraum Graustufen Farbtiefe 8 Bit 256 Graustufen ( …   Deutsch Wikipedia

  • Portable Network Graphics — PNG A PNG image with an 8 bit transparency channel (top). The same image is overlaid onto a checkered background (botto …   Wikipedia

  • Pixmap — Eine Rastergrafik, auch Pixelgrafik (englisch Raster graphics image, Digital image, Bitmap oder Pixmap), ist eine Form der Beschreibung eines Bildes in Form von computerlesbaren Daten. Rastergrafiken bestehen aus einer rasterförmigen Anordnung… …   Deutsch Wikipedia

  • X PixMap — Infobox file format name = X Pixmap extension = .xpm mime = image/x xpixmap unofficial image/x xpm unofficial owner = BULL Research creatorcode = genre = Image file formats containerfor = containedby = extendedfrom = XBM and Portable pixmap… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”