49 votes
PGM File - What is a .pgm file and how do I open it?
Learn about .PGM files and view a list of programs that open them.
Languages
Overview
What is a PGM file? A PGM file is a grayscale image file saved in the portable gray map (PGM) format and encoded with one or two bytes (8 or 16 bits) per pixel. It contains header information and a grid of numbers representing different shades of gray, from black (0) to white (up to 65,536). PGM files are typically stored in ASCII text format but also have a binary representation.
More Information PGM file open in Apple Preview 11 PGM files include a header that defines the PGM format type ("P2" for text or "P5" for binary), image width and height, and the maximum number of shades. While binary PGM files may contain multiple images, ASCII PGM files may only include one image. The PGM format is one of several image formats defined by the Netpbm project, which is an open-source package of graphics programs. Other formats include the portable bitmap ( .PBM ) and portable pixmap ( .PPM ) formats. NOTE: PGM files may also be called "portable greymap" files.
Apple Preview 11 Icon
Breadcrumbs
Previous / Next
In-Depth
.PGM File Extension
2 file types use the .pgm file extension.
Portable Gray Map Image
| Developer | Jef Poskanzer |
| Popularity |
3.6 | 49 Votes |
NEW: Open your .PGM file online with File Helper . View Online
What is a PGM file?
A PGM file is a grayscale image file saved in the portable gray map (PGM) format and encoded with one or two bytes (8 or 16 bits) per pixel. It contains header information and a grid of numbers representing different shades of gray, from black (0) to white (up to 65,536). PGM files are typically stored in ASCII text format but also have a binary representation.
More Information
PGM file open in Apple Preview 11
PGM files include a header that defines the PGM format type ("P2" for text or "P5" for binary), image width and height, and the maximum number of shades. While binary PGM files may contain multiple images, ASCII PGM files may only include one image.
The PGM format is one of several image formats defined by the Netpbm project, which is an open-source package of graphics programs. Other formats include the portable bitmap ( .PBM ) and portable pixmap ( .PPM ) formats.
NOTE: PGM files may also be called "portable greymap" files.
How to open a PGM file
You can open a PGM file with various image viewers and editors. Some applications that support PGM images include GIMP (multiplatform), Corel PaintShop Pro (Windows), and Apple Preview (bundled with macOS).
Opening a PGM file with a text editor
PGM file open in Apple TextEdit
Since PGM files are saved in plain text, you can also open them with a text editor, such as Microsoft Notepad or Apple TextEdit , or a source code editor. You may need to rename the .pgm file extension to .txt for the text editor to recognize it.
When opened in a text editor or source code editor, you can modify the image data in a PGM file. However, if you incorrectly edit the file, you may inadvertently corrupt the image.
How to convert a PGM file
Several image editors, including GIMP, Corel PaintShop Pro, and Apple Preview, can convert PGM files to other formats.
For example, GIMP can convert PGM files to many file types, including the following formats:
Programs that open PGM files
Sort
Pricing
Program Name
Platform
Reset
X
Windows
File Viewer Plus
—
Get it from Microsoft
Free +
GIMP
Free
Corel PaintShop Pro 2023
Free Trial
Canvas GFX Canvas X Pro
Free Trial
ACD Systems ACDSee Photo Studio
Free Trial
Inkscape
Free
Netpbm
Free
Adobe Photoshop with CartaPGM plug-in
Free Trial
Any text editor
Mac
Apple Preview
Included with OS
GIMP
Free
Inkscape
Free
Netpbm
Free
Adobe Photoshop with CartaPGM plug-in
Free Trial
Any text editor
Linux
GIMP
Free
Inkscape
Free
Netpbm
Free
Any text editor
Web
FileHelper.com
Free
Android
File Viewer for Android
Free +
Category: Raster Image Files
Updated: May 17, 2022
Akai MPC Program File
| Developer | Akai |
| Popularity |
1.2 | 5 Votes |
A PGM file contains a program used by various Music Production Controller (MPC) devices, such as MPC1000, MPC2000, and MPC3000. It stores configuration information about the pads (buttons) on the MPC device and the mono or stereo samples they are assigned to play when touched on the MPC device. PGM files also include parameters for the program, such as sound assignments, SIMULT settings, and tuning parameters.
More Information
PGM files may be saved in the standard MPC program format or the revised format that was developed to support more complex MPC devices. MPCs manufactured before the MPC1000 device do not support the newer PGM format. However, MPCs manufactured after the MPC1000 support both versions of the PGM format.
While PGM files were designed to be loaded on to MPC devices, they can also be loaded by MPC software developed to emulate MPC devices on computers. Some examples of programs that can open PGM files are MPC Maid and MPC Editor.
Programs that open or reference PGM files
Sort
Pricing
Program Name
Platform
Reset
X
Windows
MPC Maid
Free
Midicase.com MPC Editor
Free
Native Instruments Maschine 2
Free
Mac
MPC Maid
Free
Native Instruments Maschine 2
Free
Category: Settings Files
Updated: October 4, 2019