Image MIME Reference
Compressed-XCF
Compressed GIMP XCF Image
image/x-compressed-xcf
VS
MacPaint Image
image/x-macpaint
MacPaint
A complete technical comparison of Compressed GIMP XCF Image and MacPaint Image — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
Equal browser support
Feature Support
| Feature | Compressed-XCF | MacPaint |
|---|---|---|
| Transparency (Alpha) | Yes | ✕ No |
| Animation Support | Yes | ✕ No |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | Yes | ✕ No |
| EXIF Metadata | Yes | ✕ No |
| ICC Color Profile | Yes | ✕ No |
Compressed GIMP XCF Image
image/x-compressed-xcf
Extension
.xcf.gz.xcf.bz2.xcfgz.xcfbz2
Container
Gzip or Bzip2 Archive
Compression
Gzip (Deflate) / Bzip2
Algorithm
DeflateBWT (Burrows-Wheeler)
Color Depth
8-bit (Per Channel), 16-bit (Integer/Floating Point), 32-bit (Integer/Floating Point)
Developed by
The GIMP Team
Released
1995
Magic Bytes
1F 8B 08 (gzip) or 42 5A 68 (bzip2)
MacPaint Image
image/x-macpaint
Extension
.mac.pntg.pnt.macp
Container
Raw pixel payload with a 512-byte pattern header
Compression
PackBits (Run-Length Encoding)
Algorithm
PackBits (Apple RLE)
Color Depth
1-bit (Monochrome)
Developed by
Apple Computer, Inc. (Bill Atkinson)
Released
1984
Magic Bytes
None (Relies on classic Mac OS 'PNTG' OSType)
Browser Support Comparison
| Browser | Compressed-XCF | MacPaint |
|---|---|---|
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
|
|
✕ | ✕ |
Compressed-XCF
Compressed-XCF Strengths
- Drastically reduces the massive file sizes of standard XCF project files, saving significant disk space
- Preserves 100% of the non-destructive editing data (layers, masks, paths, guides) from the GIMP workspace
- Uses standard, universally supported compression algorithms (gzip/bzip2) meaning the archive can be rescued or extracted by standard OS tools if GIMP is unavailable
Limitations
- Increases file load and save times due to the CPU overhead required to compress and decompress the massive pixel arrays
- Impossible for automated tools to parse metadata or dimensions without first unarchiving the payload into memory
- File extension combinations (.xcf.gz) can confuse basic MIME sniffers which stop reading at the .gz extension
MacPaint
MacPaint Strengths
- Profoundly historically significant as the format that introduced millions to the concept of bitmap digital painting
- Extremely simple PackBits compression makes it easy for emulator developers or archivists to write parsers from scratch in under an hour
Limitations
- Severely limited: strictly black and white, and hard-locked to exactly 576 x 720 pixels
- Lack of standard magic bytes makes programmatic file sniffing unreliable on modern filesystems without relying on the file extension
- Completely obsolete and unsupported by modern web browsers or consumer image viewers
When to choose which format
Compressed-XCF
Use Compressed-XCF when…
- GIMP Multi-layer Project Archival
- Saving disk space for complex raster edits
- Open-source graphic design workflows
MacPaint
Use MacPaint when…
- Historical Apple Macintosh Archival
- Early 1980s Digital Art Preservation
- Retro UI/UX Academic Research