Что такое PBM? Объяснение формата Portable Bitmap

PBM (Portable Bitmap) — это двуровневый черно-белый формат из семейства Netpbm, изобретенный Джефом Посканзером, хранящий 1-битные изображения в ASCII или двоичном виде.

Бесплатный онлайн-конвертер файлов. Работает в Chrome, Firefox, Safari, Edge, Opera и других современных браузерах на Windows, macOS, Linux, Android и iOS. Не требует установки ПО или регистрации. Все преобразования выполняются прямо в браузере, поэтому ваши файлы не покидают устройство. Бесплатно и без учётной записи.

Image

Что такое PBM? Объяснение формата Portable Bitmap

Самый простой формат Netpbm, хранящий одно-битные черно-белые изображения в простом или двоичном формате.

Последнее обновление:

Year1980s
TypeRaster image (1-bit)
UsageSimple bitmap interchange

What is it?

PBM, the Portable Bitmap format, is the simplest member of the Netpbm family of image formats. It was invented by Jef Poskanzer in the mid-1980s to allow images to be sent reliably through email and exchanged easily between different systems.

A PBM file stores a bi-level (black-and-white) image where each pixel is a single bit. Files start with a two-byte magic number, P1 for the plain ASCII variant and P4 for the binary (raw) variant, followed by the image width and height and then the pixel data. The deliberately minimal structure makes the format trivial to read and write.

Technical Specifications

DeveloperJef Poskanzer (Netpbm / Pbmplus)
File Extension.pbm
MIME Typeimage/x-portable-bitmap
ReleasedMid-1980s (Pbmplus 1988)
CompressionNone

Pros & Cons

Advantages

Чрезвычайно простой

The minimal header and 1-bit pixels make PBM one of the easiest image formats to read and write programmatically.

Вариант с простым текстом

The P1 ASCII variant stores pixels as human-readable 0s and 1s, useful for debugging and quick generation.

Высокая портативность

Designed for cross-platform exchange, it works consistently across systems and many image tools.

Маленький для линейной графики

For purely black-and-white images, 1-bit pixels keep the binary variant compact.

Disadvantages

Только черно-белый

PBM cannot represent grayscale or color; those require the related PGM and PPM formats.

Без сжатия

Pixel data is stored uncompressed, so it is inefficient for large images compared with PNG.

Подробный ASCII-вариант

The plain P1 form is space-inefficient because each pixel is written as text.

When to Use It

PBM is used where a dead-simple, portable bi-level image is all that is needed.

Программная генерация изображений

Scripts and programs emit PBM because the format is trivial to write by hand or in code.

Пipelines обработки изображений

Netpbm tools use PBM as an intermediate format when converting or manipulating bitmaps.

Данные факсов и линейной графики

Bi-level content such as scanned text or fax-style images maps naturally onto PBM.

How to open a PBM file

Software for working with PBM files can be categorized into professional tools, free/open-source options, browser-based applications, and built-in utilities. Professional tools are suited for users who require advanced editing capabilities and high fidelity, while free and open-source options appeal to those looking for cost-effective solutions. Browser-based applications offer convenience and accessibility, and built-in utilities are often sufficient for basic tasks.

When choosing software for PBM, key decision factors include feature fidelity, the distinction between editing and viewing capabilities, cost models, platform compatibility, and export needs. Users should consider whether they need extensive editing features or simple viewing options, as well as whether converting PBM to another format would better meet their needs.

GIMP 2.10.34

Windows, macOS, LinuxFree (GPL)

GIMP is a powerful open-source image editor that supports PBM files. It allows users to view and edit PBM images with high fidelity, offering a range of tools for manipulation and enhancement.

Ключевые функции
  • Layer-based editing and manipulation
  • Advanced color correction tools
  • Support for various image formats
  • Customizable brushes and patterns
  • Scripting capabilities for automation
Преимущества
  • Comprehensive editing features for PBM
  • Strong community support and resources
  • No cost for full functionality
Ограничения
  • Steeper learning curve for beginners
  • Performance can lag with large files

Экспортирует в: PNG, JPG, TIFF, GIF, PSD

Лучше всего для: GIMP is ideal for users needing extensive editing tools for PBM files without any cost.

Перейти GIMP →

ImageMagick 7.1.0-15

Windows, macOS, LinuxFree (Apache License)

ImageMagick is a command-line tool that excels in converting and manipulating images, including PBM files. It is particularly useful for batch processing and automating tasks involving PBM format.

Ключевые функции
  • Batch processing of multiple PBM files
  • Conversion to and from various formats
  • Image resizing and transformation
  • Text and drawing capabilities
  • Support for scripting and automation
Преимущества
  • Highly efficient for bulk image processing
  • Supports a wide range of formats
  • Powerful command-line interface
Ограничения
  • No graphical user interface
  • Steeper learning curve for non-technical users

Экспортирует в: PNG, JPG, TIFF, GIF, PDF

Лучше всего для: ImageMagick is perfect for users who need a robust command-line tool for processing PBM files in bulk.

Перейти ImageMagick →

IrfanView 4.60

WindowsFree for non-commercial use

IrfanView is a lightweight image viewer that supports PBM files, allowing users to view and perform basic edits. It is known for its speed and simplicity, making it a great choice for quick tasks.

Ключевые функции
  • Basic editing tools like crop and resize
  • Slideshow creation and management
  • Support for plugins to extend functionality
  • Batch conversion capabilities
  • Image format conversion
Преимущества
  • Fast and lightweight for quick viewing
  • User-friendly interface
  • Batch processing for multiple files
Ограничения
  • Limited advanced editing features
  • Windows-only platform

Экспортирует в: PNG, JPG, TIFF, GIF, BMP

Лучше всего для: IrfanView is suitable for users seeking a fast and simple viewer for PBM files with basic editing needs.

Перейти IrfanView →

Paint.NET 5.0.8

WindowsFree (MIT License)

Paint.NET is a free image and photo editing software that supports PBM files, providing a balance between simplicity and powerful editing features. It is user-friendly and suitable for both beginners and advanced users.

Ключевые функции
  • Layer support for complex editing
  • Wide range of effects and filters
  • Undo history for easy corrections
  • Customizable user interface
  • Support for plugins to enhance functionality
Преимущества
  • Intuitive interface for easy navigation
  • Good balance of features for casual users
  • Active community for support and plugins
Ограничения
  • Windows-only availability
  • Less powerful than professional tools

Экспортирует в: PNG, JPG, BMP, TIFF, GIF

Лучше всего для: Paint.NET is ideal for users looking for a free, user-friendly image editor that supports PBM files with essential editing tools.

Перейти Paint.NET →

Convert PBM Files Free

Use our free online image converter to convert PBM and other formats - no signup, no watermarks.

Try Image Converter Free

References

  1. The PBM Format - Netpbm Official Documentation
  2. Netpbm - Wikipedia
  3. Netpbm formats - Just Solve the File Format Problem