Image format
What is a .pgm file?
The greyscale member of the Netpbm family, with the same simple header as PPM but a single value per pixel. Tools that read PGM usually read PPM too, since the formats only differ in the channels.
fileclay opens and writes PGM
When to use PGM
- Best for
- Grayscale tests and scientific image processing.
- Advantages
- Plain grayscale values, easy to process.
- Disadvantages
- No color, and photo apps rarely open it.
Convert PGM files
From PGM
All 23 output formats: .png, .jpg, .webp, .bmp, .tif, .tiff, .gif, .tga, .jp2, .j2k, .j2c, .ico, .ppm, .pbm, .pam, .qoi, .pcx, .exr, .sgi, .xbm, .jpeg, .pdf, .pptx
Conversions run in your browser. Files aren’t uploaded.
Questions about PGM
How do I convert my files to .pgm?
Open the fileclay converter, drop your file in and pick .pgm as the output format. It runs inside your browser with WebAssembly, so nothing is uploaded, there’s no account and no watermark.
Which formats can I convert PGM files into?
fileclay can write 24 formats from a PGM file, including PNG, JPG, WebP, BMP, TIF and TIFF. Pick any of them as the output format when you drop the file in.
Is PGM lossless?
Yes. PGM keeps all the original data, so nothing is lost when the file is saved.
Does PGM support transparency?
No. PGM has no transparency: converted images get a solid background.