ما هو PNM؟ تنسيق Netpbm Portable Anymap موضح

PNM (Portable Anymap) هو عائلة Netpbm من تنسيقات الصور البسيطة والمحمولة التي تغطي صور PBM بتنسيق bitmap، وصور PGM الرمادية وصور PPM الملونة.

أداة تحويل ملفات مجانية عبر الإنترنت. تعمل على Chrome وFirefox وSafari وEdge وOpera والمتصفحات الحديثة الأخرى على Windows وmacOS وLinux وAndroid وiOS. لا حاجة لتثبيت برامج أو تسجيل. تتم جميع التحويلات مباشرة في متصفحك، لذا لا تغادر ملفاتك جهازك. مجانية للاستخدام بدون حساب.

Image

ما هو PNM؟ تنسيق Netpbm Portable Anymap موضح

عائلة Netpbm من تنسيقات الصور البسيطة والقابلة للنقل PBM وPGM وPPM.

آخر تحديث:

Year1988
TypeRaster
UsageCross-platform image exchange

What is it?

PNM (Portable Anymap) is a collective name for a family of simple raster image formats from the Netpbm project: PBM (Portable Bitmap, 1-bit), PGM (Portable Graymap, grayscale) and PPM (Portable Pixmap, color). The formats originated with Jef Poskanzer's Pbmplus toolkit, released in 1988.

Each file begins with a two-character magic number: a capital P followed by a digit. P1, P2 and P3 are the human-readable 'plain' (ASCII) variants of PBM, PGM and PPM, while P4, P5 and P6 are the corresponding compact 'raw' (binary) variants. A small text header gives the dimensions and, for PGM/PPM, the maximum sample value. The related PAM format uses the magic number P7.

Technical Specifications

DeveloperJef Poskanzer / Netpbm project
File Extension.pnm (.pbm, .pgm, .ppm)
MIME Typeimage/x-portable-anymap
Released1988
TypeRaster (bitmap/grayscale/color)

Pros & Cons

Advantages

هيكل بسيط للغاية

A tiny text header plus pixel data makes PNM formats trivial to read and write, ideal for quick tools and pipelines.

قابلية نقل عالية

The formats were designed for easy exchange between platforms and are supported by virtually all image-processing toolkits.

متغيرات بسيطة وغير معالجة

ASCII variants are human-readable and easy to debug, while binary variants store the same data compactly.

تخزين بدون فقدان

PNM stores raw, uncompressed samples, so no image quality is lost when saving.

Disadvantages

لا ضغط

PNM files are uncompressed, so they are much larger than formats like PNG for the same image.

بيانات وصفية بسيطة

The formats carry essentially no metadata beyond dimensions and maximum sample value.

لا توجد شفافية في التنسيقات الأساسية

PBM, PGM and PPM have no alpha channel; transparency requires the extended PAM format.

When to Use It

PNM formats are widely used as simple intermediates in image-processing and conversion pipelines.

تحويل وسائط

The Netpbm toolkit uses PNM as a common intermediate format when converting between many other image formats.

توليد الصور برمجياً

Their simple structure makes PBM/PGM/PPM easy targets for scripts and programs that generate images directly.

التعليم والنمذجة

The readable layout makes PNM popular for learning image formats and for quick prototyping of graphics code.

How to open a PNM file

Software for working with PNM files can be categorized into professional tools, free/open-source applications, browser-based solutions, and built-in utilities. Professional tools typically offer advanced features for comprehensive editing, while free/open-source options are suitable for users with basic needs or those who prefer customizable software. Browser-based solutions provide quick access without installation, and built-in utilities offer basic functionality for casual users.

When choosing software for PNM, important factors include feature fidelity, whether the focus is on editing or viewing, cost models, platform compatibility, export needs, and the potential benefits of converting to other formats. Users should consider how much editing they plan to do versus simple viewing, as well as the importance of exporting to other formats for compatibility with different applications.

GIMP 2.10.34

Windows, macOS, LinuxFree (GPL)

GIMP is a powerful open-source image editor that supports PNM files for both viewing and editing. It maintains high fidelity when working with PNM formats, allowing users to manipulate images with precision.

الميزات الرئيسية
  • Advanced layer and mask editing
  • Support for multiple color models
  • Customizable brushes and tools
  • Extensive plugin support
  • Batch processing capabilities
نقاط القوة
  • Highly customizable with plugins
  • Robust editing features for PNM
  • Active community for support
القيود
  • Steeper learning curve for beginners
  • Performance can lag with large files

يصدّر إلى: PNG, JPG, TIFF, BMP, GIF

الأفضل لـ: GIMP is ideal for users needing extensive editing capabilities for PNM files without the cost.

زيارة GIMP →

ImageMagick 7.1.0-13

Windows, macOS, LinuxFree (Apache License)

ImageMagick is a command-line tool that excels in converting and processing images, including PNM files. It is particularly useful for batch processing and automation, maintaining high fidelity during conversions.

الميزات الرئيسية
  • Command-line interface for automation
  • Batch conversion of multiple files
  • Image resizing and transformation
  • Support for over 200 formats
  • Advanced scripting capabilities
نقاط القوة
  • Powerful for batch processing tasks
  • Highly scriptable for automation
  • Supports extensive image formats
القيود
  • No graphical user interface
  • Steeper learning curve for non-technical users

يصدّر إلى: PNG, JPG, GIF, TIFF, PDF

الأفضل لـ: ImageMagick is best for users who need robust batch processing and automation for PNM files.

زيارة ImageMagick →

Netpbm 10.0.0

Windows, macOS, LinuxFree (GPL)

Netpbm is a toolkit specifically designed for handling PNM files, offering a suite of command-line utilities for conversion and manipulation. It provides high fidelity for PNM formats and is ideal for users who need to work with raw image data.

الميزات الرئيسية
  • Conversion between PNM and other formats
  • Image manipulation utilities
  • Support for grayscale and color images
  • Batch processing capabilities
  • Minimal dependencies for installation
نقاط القوة
  • Focused on PNM file handling
  • Lightweight and easy to install
  • Comprehensive set of utilities
القيود
  • Lacks a graphical user interface
  • Limited editing features compared to GUI tools

يصدّر إلى: PNG, JPG, TIFF, BMP

الأفضل لـ: Netpbm is perfect for users needing a dedicated toolkit for PNM file manipulation without a GUI.

زيارة Netpbm →

IrfanView 4.60

WindowsFree for non-commercial use

IrfanView is a lightweight image viewer that supports PNM files, allowing users to view and perform basic edits. It is user-friendly and suitable for quick access to PNM images without complex features.

الميزات الرئيسية
  • Basic editing tools like cropping and resizing
  • Slideshow creation capabilities
  • Batch conversion of image formats
  • Support for plugins to extend functionality
  • Simple interface for quick access
نقاط القوة
  • Fast and lightweight for viewing
  • User-friendly interface
  • Batch processing for conversions
القيود
  • Limited editing capabilities
  • Windows-only platform

يصدّر إلى: PNG, JPG, BMP, GIF, TIFF

الأفضل لـ: IrfanView is suitable for users who need a quick and easy way to view and perform basic edits on PNM files.

زيارة IrfanView →

Convert PNM Files Free

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

Try Image Converter Free

References

  1. The PNM Format - Netpbm documentation
  2. Netpbm - Wikipedia
  3. The PPM Format - Netpbm documentation