Apa itu XPM? Format X PixMap Dijelaskan

XPM (X PixMap) adalah format gambar X Window System berwarna yang menyimpan pixmap ikon sebagai teks ASCII yang kompatibel dengan C, dengan warna bernama dan transparansi.

Alat konversi file online gratis. Berfungsi di Chrome, Firefox, Safari, Edge, Opera, dan browser modern lainnya di Windows, macOS, Linux, Android, dan iOS. Tanpa instalasi perangkat lunak atau pendaftaran. Semua konversi berjalan langsung di browser Anda, sehingga file Anda tidak pernah meninggalkan perangkat. Gratis digunakan tanpa akun.

Image

Apa itu XPM? Format X PixMap Dijelaskan

Format ikon X Window System berwarna yang menyimpan pixmap sebagai teks ASCII yang kompatibel dengan C.

Terakhir diperbarui:

Year1989
TypeRaster (color)
UsageX Window System icons

What is it?

XPM (X PixMap) is an image format used by the X Window System, created in 1989 at the Bull Research Center in France by Daniel Dardailler and Colas Nahaboo, and later enhanced by Arnaud Le Hors. It was designed primarily for color icon pixmaps and supports transparent pixels.

An XPM file is plain text, either in the XPM2 form or as a C character-string array that can be included directly in a C program. The data is organized into sections for values (width, height, color count, characters per pixel), a color table mapping character codes to colors, the pixel rows, and optional extensions. Colors can be hex codes or X11 color names, and the keyword None marks transparency.

Technical Specifications

DeveloperDaniel Dardailler & Colas Nahaboo (Bull Research)
File Extension.xpm
MIME Typeimage/x-xpixmap
Released1989
TypeColor pixmap (C source / ASCII text)

Pros & Cons

Advantages

Warna dengan transparansi

Unlike XBM, XPM stores color images and supports a transparent color via the None keyword, ideal for icons.

Kompilasi menjadi program C

As a C character-string array, an XPM pixmap can be included and compiled directly into an application.

Warna bernama

XPM accepts X11 color names as well as hex codes, and can declare color, grayscale and monochrome variants per pixel.

Teks yang dapat dibaca manusia

The plain-text structure can be viewed and edited in any text editor, which is handy for small icons.

Disadvantages

Tidak efisien untuk gambar besar

Storing pixels as ASCII character codes makes XPM bulky and unsuitable for photographs or large graphics.

Penggunaan niche yang berfokus pada X

XPM is primarily an X Window System icon format and is uncommon outside that and developer contexts.

Peralatan modern yang terbatas

While some editors support it, XPM has narrower support than mainstream formats like PNG.

When to Use It

XPM is mainly used for color icons and small graphics in X Window System software.

Ikon aplikasi dan toolbar

XPM was widely used to define color icons for X11 applications and desktop environments.

Pixmaps yang disusun

Developers embed XPM data directly in C source so icons ship inside the program binary.

Grafik pengelola jendela

X-based window managers and toolkits use XPM for small color UI elements that need transparency.

How to open a XPM file

XPM files, or X PixMap files, are primarily used for storing pixel-based images in a format that is particularly popular in the Unix/Linux environment. Software for handling XPM files can be categorized into professional graphic design tools, free and open-source applications, web-based viewers, and built-in utilities in various operating systems. Professional tools are suited for users needing advanced editing capabilities, while free and open-source options cater to casual users and developers. Browser-based tools provide quick access without installation, and built-in utilities offer basic functionality for quick viewing.

When choosing software for XPM files, several decision factors come into play, including feature fidelity for editing and viewing, the cost model of the software, platform compatibility, and any export needs for different formats. Users should consider whether they need extensive editing features or simple viewing capabilities, as well as whether they prefer a free solution or are willing to invest in a professional-grade application. Additionally, for users who only need to convert XPM files to more widely used formats, using a conversion tool might be a more efficient option.

GIMP 2.10.34

Windows, macOS, LinuxFree (GPL)

GIMP is a powerful open-source image editor that supports XPM files natively. It allows users to view, edit, and export XPM images with high fidelity, making it suitable for both casual and professional use.

Fitur utama
  • Full layer and mask editing
  • Advanced color manipulation tools
  • Customizable brushes and patterns
  • Support for multiple file formats
  • Extensive plugin support for enhancements
Kelebihan
  • Highly customizable user interface
  • Robust community and support resources
  • Comprehensive editing features for XPM
Keterbatasan
  • Steeper learning curve for beginners
  • Performance can lag on older hardware

Ekspor ke: PNG, JPG, TIFF, BMP, GIF

Terbaik untuk: GIMP is ideal for users seeking a free, comprehensive editing tool for XPM files with extensive capabilities.

Kunjungi GIMP →

ImageMagick 7.1.0-13

Windows, macOS, LinuxFree (Apache License)

ImageMagick is a command-line tool that provides powerful image manipulation capabilities, including support for XPM files. It is particularly useful for batch processing and converting XPM images to other formats.

Fitur utama
  • Batch processing of images
  • Conversion to multiple formats
  • Image resizing and optimization
  • Support for image annotations
  • Extensive command-line options
Kelebihan
  • Highly efficient for batch operations
  • Lightweight and fast performance
  • Versatile format support for conversions
Keterbatasan
  • Command-line interface may deter some users
  • Limited graphical editing capabilities

Ekspor ke: PNG, JPG, GIF, TIFF, PDF

Terbaik untuk: ImageMagick is perfect for users who need a powerful command-line tool for processing XPM files efficiently.

Kunjungi ImageMagick →

XnView MP 1.0.0

Windows, macOS, LinuxFree / Paid

XnView MP is a versatile image viewer and converter that supports XPM files among many other formats. It offers a user-friendly interface for viewing and basic editing of XPM images.

Fitur utama
  • Multi-format image viewing
  • Basic editing tools like cropping
  • Batch conversion capabilities
  • Metadata editing and management
  • Slideshow and presentation features
Kelebihan
  • Intuitive interface for easy navigation
  • Supports a wide range of formats
  • Efficient batch processing options
Keterbatasan
  • Limited advanced editing features
  • Paid version required for some features

Ekspor ke: PNG, JPG, TIFF, GIF, BMP

Terbaik untuk: XnView MP is suitable for users looking for a straightforward viewer and converter for XPM files with basic editing needs.

Kunjungi XnView MP →

Paint.NET 4.3.12

WindowsFree (with optional donations)

Paint.NET is a free image editing software for Windows that supports XPM files through plugins. It provides a simple interface for basic editing tasks and is suitable for casual users.

Fitur utama
  • Layer support for image composition
  • Basic drawing and painting tools
  • Plugin support for extended functionality
  • Simple user interface for beginners
  • Undo history for easy corrections
Kelebihan
  • User-friendly for beginners
  • Lightweight and fast performance
  • Active community for plugin development
Keterbatasan
  • Limited advanced editing features
  • XPM support requires additional plugins

Ekspor ke: PNG, JPG, BMP, TIFF, GIF

Terbaik untuk: Paint.NET is ideal for casual users seeking a simple and effective tool for basic XPM editing and viewing.

Kunjungi Paint.NET →

Convert XPM Files Free

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

Try Image Converter Free

References

  1. X PixMap - Wikipedia
  2. XPM File Format Summary - Encyclopedia of Graphics File Formats