¿Qué es XPM? Formato X PixMap explicado

XPM (X PixMap) es un formato de imagen a color del sistema X Window que almacena pixmaps de íconos como texto ASCII compatible con C, con colores nombrados y transparencia.

Herramienta gratuita de conversión de archivos en línea. Funciona en Chrome, Firefox, Safari, Edge, Opera y otros navegadores modernos en Windows, macOS, Linux, Android e iOS. No requiere instalación de software ni registro. Todas las conversiones se ejecutan directamente en tu navegador, por lo que tus archivos nunca salen de tu dispositivo. Gratis y sin necesidad de cuenta.

Image

¿Qué es XPM? Formato X PixMap explicado

Un formato de ícono a color del sistema X Window que almacena pixmaps como texto ASCII compatible con C.

Última actualización:

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

Color con transparencia

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

Compila en programas C

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

Colores nombrados

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

Texto legible por humanos

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

Disadvantages

Ineficiente para imágenes grandes

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

Uso de nicho centrado en X

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

Herramientas modernas limitadas

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.

Íconos de aplicación y barra de herramientas

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

Pixmaps compilados

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

Gráficos del gestor de ventanas

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.

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

Exporta a: PNG, JPG, TIFF, BMP, GIF

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

Visitar 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.

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

Exporta a: PNG, JPG, GIF, TIFF, PDF

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

Visitar 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.

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

Exporta a: PNG, JPG, TIFF, GIF, BMP

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

Visitar 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.

Funciones clave
  • 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
Fortalezas
  • User-friendly for beginners
  • Lightweight and fast performance
  • Active community for plugin development
Limitaciones
  • Limited advanced editing features
  • XPM support requires additional plugins

Exporta a: PNG, JPG, BMP, TIFF, GIF

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

Visitar 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