Zum Hauptinhalt springen
🇬🇧 English 🇪🇸 Español 🇧🇷 Português
Bildkonverter Videokonverter Audiokonverter Dokumentkonverter
Werkzeuge Anleitungen Formate Preise API
Anmelden
PGM file
pgm
Dateiformat

Über PGM-Dateien

PGM Grayscale Bild

Veröffentlicht 1988 Von Jef Poskanzer

Das PGM-Format ist eine Dateispezifikation, die in verschiedenen professionellen und privaten Kontexten verwendet wird. Wandle PGM-Dateien online und kostenlos zu anderen kompatiblen Formaten mit dem KaijuConverter um — keine Anmeldung, keine Software-Installation, sicher und privat. Die Verarbeitung erfolgt in der Cloud mit Verschlüsselung während der Übertragung und automatischer Löschung nach zwei Stunden.

Familie

Raster & Vector Images

Erweiterung

.pgm

MIME-Typ

image/x-portable-graymap

Kann verwendet werden als

Eingabe Ausgabe
Die Geschichte

WIE DAS
FORMAT PGM ENTSTAND.

PGM — Portable GrayMap — is the grayscale sibling of PBM and PPM in Jef Poskanzer’s 1988 Netpbm toolkit. Where PBM stores 1-bit black-or-white pixels, PGM stores 8-bit (values 0-255) or 16-bit (0-65535) grayscale values. Like its sibling formats, PGM comes in ASCII (P2) and binary (P5) variants, and shares the same stupidly simple header: magic number, width, height, max value, then pixel data.

PGM has been the Unix grayscale intermediate format since shell pipelines needed one. OCR engines (Tesseract) preprocess scanned documents to PGM before recognition. Medical imaging pipelines convert DICOM images to PGM for ImageMagick processing. Machine-vision and photogrammetry tools exchange depth maps as 16-bit PGM. It’s a format that refuses to die because its simplicity is its best feature.

WISSENSWERTES UND
INTERESSANTE FAKTEN.

01

Tesseract OCR's preferred input format is PGM — every "scan to text" pipeline on Linux preprocesses through it.

02

Medical imaging workflows use 16-bit PGM to preserve the 12-bit output of X-ray and MRI scanners during intermediate processing.

03

A grayscale photo compresses 8× better as a 1-bit PBM if you dither it — but loses all tonal detail.

04

Machine-vision systems exchange depth maps as 16-bit PGM because the single-channel grayscale fits depth values naturally.

05

The P2 (ASCII) and P5 (binary) magic numbers are the only difference between two structurally identical file variants.

VORTEILE UND
EINSCHRÄNKUNGEN.

Vorteile

  • Trivially simple to parse and generate.
  • Ideal Unix pipeline intermediate for grayscale processing.
  • Preserves 16-bit depth for scientific and medical data.
  • Universal tooling (Netpbm, ImageMagick, Tesseract).
  • ASCII variant is human-readable.

Einschränkungen

  • No compression — files balloon for large images.
  • No metadata, no color profile.
  • Grayscale only — drop to PBM for bitmap or up to PPM for color.
  • Not a delivery format — strictly pipeline intermediate.

Typische Dateigrößen

1920×1080 grayscale 8-bit (binary P5)

~2 MB

1920×1080 grayscale 16-bit

~4 MB

DICOM-equivalent medical slice

500 KB - 20 MB

Technische Spezifikationen

MIME type
image/x-portable-graymap
Extension
.pgm
Variants
P2 (ASCII), P5 (binary)
Bit depth
8-bit or 16-bit per pixel
Creator
Jef Poskanzer (1988), Netpbm toolkit

UMWANDELN VON
PGM

Häufige Anwendungsfälle

Scientific imaging, machine vision

Verwandte Formate

Beliebte Vergleiche

Beliebte PGM-Umwandlungen

Die meistgesuchten Ziele beim Umwandeln von PGM-Dateien.

Häufig gestellte Fragen zu PGM

Häufig gestellte Fragen

PGM (PGM Grayscale Image) is an image Format used to store raster graphics — a two-dimensional grid von pixels describing a picture. It is part des raster & vector images family und designed around a specific trade-off between Dateigröße, visual fidelity, und feature support (transparency, colour depth, Komprimierung type). Photographers, web designers, und content creators choose PGM when its particular strengths match the publishing target.

Most desktop photo viewers (Windows Photos, macOS Preview, GIMP, Photoshop, Affinity Photo) öffnen PGM natively. On mobile, iOS Photos und Google Photos display PGM im gallery when unterstützt by the OS. If the Format is rare oder new, umwandeln to JPG oder PNG first — both are universellly readable — using our PGM to JPG oder PGM to PNG converter.

Upload the PGM to KaijuConverter und pick a target Format (JPG, PNG, WebP, HEIC, TIFF, BMP, SVG, PDF). The conversion runs in der Browser via ImageMagick und returns a herunterladen in seconds. No account oder installation required; both input und output delete automatically within two hours.

Es hängt ab von the task. JPG is the smallest Dateigröße für photographs; PNG is verlustfrei mit Transparenz; PGM has its own niche that may favour colour depth, animation, oder Codierung efficiency over one oder both von those. für the final web publish, test all three und measure Dateigröße plus visible quality on real content.

Wir verwenden Cookies und ähnliche Technologien, um Inhalte und Anzeigen zu personalisieren und Datenverkehr zu analysieren. Mehr über Cookies erfahren.