Free webp to jpg
Image MIME Reference
Apple-ICNS

Apple Icon Image

image/x-icns
VS

Computer Graphics Metafile

image/cgm
CGM

A complete technical comparison of Apple Icon Image and Computer Graphics Metafile — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature Apple-ICNS CGM
Transparency (Alpha) Yes Yes
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support ✕ No ✕ No
EXIF Metadata ✕ No ✕ No
ICC Color Profile Yes Yes
Apple Icon Image
image/x-icns
Extension
.icns
Container Chunk-based (OSType Header)
Compression Uncompressed (Legacy) / PNG (Modern) / JPEG 2000 (Modern)
Algorithm
NoneDeflate (via embedded PNG)Wavelet (via embedded JP2)
Color Depth 1-bit (Monochrome), 4-bit, 8-bit, 24-bit (RGB), 32-bit (RGBA)
Developed by Apple Inc.
Released 2001
Magic Bytes
69 63 6E 73
Full Apple-ICNS reference →
Computer Graphics Metafile
image/cgm
Extension
.cgm
Container CGM
Compression Uncompressed / Binary / Character / Clear Text
Algorithm
Deflate (in some WebCGM profiles)
Color Depth 8-bit, 16-bit, 24-bit, 32-bit
Developed by ISO / IEC
Released 1987
Magic Bytes
00 20 (Binary) / 42 45 47 49 4E 20 4D 45 54 41 46 49 4C 45 (Clear Text)
Full CGM reference →

Browser Support Comparison

Browser Apple-ICNS CGM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
Apple-ICNS

Apple-ICNS Strengths

  • Seamlessly handles multi-resolution scaling on macOS, perfectly serving both standard and high-DPI (Retina) displays from a single asset
  • Modern versions efficiently embed standard PNG files, making it much easier to parse the high-resolution layers than the legacy raw pixel formats
Limitations
  • Strictly bound to the Apple ecosystem; completely useless natively on Windows, Linux, or the Web
  • The internal chunking structure is notoriously messy, utilizing dozens of different undocumented, legacy OSType tags spanning 20+ years of Apple history
CGM

CGM Strengths

  • Strictly standardized by ISO, ensuring long-term archiving and cross-platform compatibility in engineering
  • Excellent support for rich metadata, hyperlinks, and technical hotspots via the WebCGM profile
  • Can store complex 2D geometry, rasters, and text in a single lightweight file
Limitations
  • Multiple encoding schemes (Binary, Character, Clear Text) make parser development difficult
  • Zero native support in modern web browsers without third-party plugins
  • Largely replaced by SVG for general-purpose 2D vector graphics on the web

When to choose which format

Apple-ICNS
Use Apple-ICNS when…
  • macOS Application Bundles (.app)
  • macOS Folder Customization
  • Apple Disk Image (.dmg) Styling
CGM
Use CGM when…
  • Technical Illustrations
  • Aerospace & Defense (S1000D)
  • CAD/CAM
  • Geophysics
Share this comparison