Image MIME Reference
MacPaint
MacPaint Image
image/x-macpaint
VS
Scalable Vector Graphics
image/svg+xml
SVG
A complete technical comparison of MacPaint Image and Scalable Vector Graphics — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.
SVG wins on browser support
Feature Support
| Feature | MacPaint | SVG |
|---|---|---|
| Transparency (Alpha) | ✕ No | Yes |
| Animation Support | ✕ No | Yes |
| Progressive Loading | ✕ No | ✕ No |
| HDR Support | ✕ No | Yes |
| EXIF Metadata | ✕ No | ✕ No |
| ICC Color Profile | ✕ No | ✕ No |
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)
Scalable Vector Graphics
image/svg+xml
Extension
.svg.svgz
Container
XML Document
Compression
Uncompressed (Plain Text XML) / Lossless (GZIP via .svgz)
Algorithm
None (for .svg)GZIP (for .svgz)
Color Depth
Vector (Independent of bit-depth), CSS Colors (HEX, RGB, HSL, Display-P3)
Developed by
World Wide Web Consortium (W3C)
Released
2001
Magic Bytes
3C 73 76 67 (for <svg) / 3C 3F 78 6D 6C (for <?xml)
Browser Support Comparison
| Browser | MacPaint | SVG |
|---|---|---|
|
|
✕ |
✓ All
|
|
|
✕ |
✓ All
|
|
|
✕ |
✓ All
|
|
|
✕ |
✓ All
|
|
|
✕ |
✓
|
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
SVG
SVG Strengths
- Provides infinite resolution scalability, looking perfectly crisp on high-DPI (Retina) displays without increasing file size
- Extremely lightweight compared to raster formats for flat graphics, logos, and UI elements
- Can be manipulated dynamically via the browser's CSS and JavaScript engines (DOM integration)
Limitations
- Unsuitable for complex photographic images or photorealistic textures
- Poses critical security vulnerabilities (XSS and XML External Entity attacks) if user-uploaded SVGs are not heavily sanitized
- Rendering performance degrades significantly if the SVG contains tens of thousands of complex nodes or deeply nested paths
When to choose which format
MacPaint
Use MacPaint when…
- Historical Apple Macintosh Archival
- Early 1980s Digital Art Preservation
- Retro UI/UX Academic Research
SVG
Use SVG when…
- Web Logos & UI Icons
- Responsive Web Design Elements
- Interactive Data Visualizations (D3.js)
- CSS and SMIL Web Animations