Free webp to jpg
Image MIME Reference
PSD

Adobe Photoshop Document

image/vnd.adobe.photoshop
VS

X Pixmap

image/x-xpixmap
XPM

A complete technical comparison of Adobe Photoshop Document and X Pixmap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature PSD XPM
Transparency (Alpha) Yes Yes
Animation Support Yes ✕ No
Progressive Loading ✕ No ✕ No
HDR Support Yes ✕ No
EXIF Metadata Yes ✕ No
ICC Color Profile Yes ✕ No
Adobe Photoshop Document
image/vnd.adobe.photoshop
Extension
.psd.psb.pdd
Container Adobe Photoshop Document (PSD/PSB)
Compression Uncompressed / RLE (Run-Length Encoding) / ZIP
Algorithm
RLEZIP (with or without prediction)None
Color Depth 1-bit (Bitmap), 8-bit, 16-bit, 32-bit (Float/HDR)
Developed by Adobe Systems
Released 1990
Magic Bytes
38 42 50 53
Full PSD reference →
X Pixmap
image/x-xpixmap
Extension
.xpm
Container C Source Code Header (.c / .h)
Compression Uncompressed (Source Code)
Algorithm
None
Color Depth Indexed Color (Custom Palette with RGB and Alpha 'None')
Developed by Daniel Dardailler and Colas Nahaboo (Bull / X Consortium)
Released 1989
Magic Bytes
2F 2A 20 58 50 4D 20 2A 2F (ASCII '/* XPM */')
Full XPM reference →

Browser Support Comparison

Browser PSD XPM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
PSD

PSD Strengths

  • The undisputed global standard for layered raster graphics and non-destructive image editing
  • Supports incredibly complex compositions combining raster data, vector shapes, live text, and adjustment layers
  • Full support for advanced color spaces (CMYK, Lab, multi-channel) and 32-bit floating-point HDR workflows
Limitations
  • Proprietary format: while the specification is published, complete feature-parity is rarely achieved by third-party software (e.g., smart objects and complex layer styles often break)
  • Files can reach enormous sizes (gigabytes) due to the preservation of unflattened, high-resolution layer data
  • Zero support for native rendering in web browsers or standard mobile image viewers
XPM

XPM Strengths

  • Can be compiled directly into C or C++ source code without requiring an external asset loading mechanism
  • Human-readable palette mapping allows developers to inspect, modify, or hand-craft icons directly within a text editor
  • Native support for color palettes and transparency via the 'None' keyword
Limitations
  • Extremely inefficient storage structure for large images, resulting in massive file bloat compared to binary formats like PNG
  • Completely obsolete and unsupported in modern web browsers
  • Parsing overhead requires compiling or interpreting text-based color tables at runtime

When to choose which format

PSD
Use PSD when…
  • Professional Photo Retouching
  • Digital Painting and Illustration
  • UI/UX Design Workflows
  • Graphic Design and Print Production
XPM
Use XPM when…
  • X Window System (X11) Application Icons and Cursors
  • Embedded C/C++ Firmware Color UI Assets
  • Early Linux Desktop Environment Themes
Share this comparison