Aller au contenu principal
🇬🇧 English 🇪🇸 Español 🇧🇷 Português 🇩🇪 Deutsch 🇯🇵 日本語 🇮🇹 Italiano 🇮🇩 Bahasa Indonesia 🇹🇷 Türkçe 🇰🇷 한국어 🇵🇱 Polski 🇳🇱 Nederlands
Convertisseur d'images Convertisseur vidéo Convertisseur audio Convertisseur de documents
Outils Guides Formats Tarifs API
Connexion
PGM file
pgm
Format de fichier

À propos des fichiers PGM

PGM (PGM Grayscale Image · Format d'image)

Lancement 1988 Par Jef Poskanzer

PGM Grayscale Image (.pgm) est un format de fichier pris en charge par KaijuConverter pour l’archivage, l’échange professionnel et la conversion multiplateforme.

Famille

Raster & Vector Images

Extension

.pgm

Type MIME

image/x-portable-graymap

Utilisable comme

Entrée Sortie
L'histoire

COMMENT PGM
A VU LE JOUR.

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.

CURIOSITÉS ET
ANECDOTES.

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.

POINTS FORTS ET
LIMITES.

Points forts

  • 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.

Limites

  • 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.

Tailles et poids typiques

1920×1080 grayscale 8-bit (binary P5)

~2 MB

1920×1080 grayscale 16-bit

~4 MB

DICOM-equivalent medical slice

500 KB - 20 MB

Spécifications techniques

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
Publicité

CONVERTIR DEPUIS
PGM

Cas d'usage courants

Scientific imaging, machine vision

Formats associés

Comparaisons populaires

Conversions PGM populaires

Les formats cibles les plus demandés à partir d'un fichier PGM.

Questions fréquentes sur PGM

Questions fréquentes

Importez simplement votre fichier PGM dans KaijuConverter pour le convertir en PDF, JPG, PNG ou tout autre format standard sans installer de logiciel.

Oui, la conversion est gratuite jusqu'à 25 Mo (et jusqu'à 1 Go avec le Pass 24h ou Pro). Tous les fichiers sont chiffrés via TLS 1.3 et supprimés automatiquement après 60 minutes.

Professional Workstation Solution
Unlimited Batch Jobs Zero Upload Wait Times Direct Disk-to-Disk I/O

Need to Convert Gigabyte Archives or Mass Folders?

KaijuConverter delivers ultra-fast in-memory conversions for everyday tasks. For multi-gigabyte production workloads without browser bandwidth bottlenecks, explore high-throughput desktop suites.

Zero cloud transfer • Native hardware performance
Pass 24 Heures (1,99 € unique) Jusqu'à 1 Go · Sans abonnement

Paiement unique sans renouvellement pour convertir des fichiers jusqu'à 1 Go et des lots de 50 pendant 24h.

Activer avec Stripe →
Kaiju Cloud Starter (3 €/mois) Jusqu'à 250 Mo / fichier

Convertissez vidéos, PDF et audios volumineux dans votre navigateur sans publicité avec file prioritaire.

Activer avec Stripe →
Kaiju Cloud Pro (9 €/mois) Jusqu'à 1 Go + Lots de 50

Traitement cloud haute vitesse jusqu'à 1 024 Mo, conservation 24h et support prioritaire.

Activer avec Stripe →
ImageMagick CLI / XnConvert Free • Mass Batch

Convert thousands of camera RAW files (CR3, NEF, ARW) to WebP, AVIF, or TIFF in one pass.

Affinity Photo / Adobe Lightroom Photo Pro

GPU-accelerated RAW development with end-to-end 16-bit ICC color profile management.

Publicité
Nous utilisons des cookies et des technologies similaires pour personnaliser le contenu et les annonces, ainsi que pour analyser notre trafic. En savoir plus sur les cookies.