Free webp to jpg
Image MIME Reference
Canon-CRW

Canon Raw Format

image/x-canon-crw
VS

Portable Anymap

image/x-portable-anymap
PNM

A complete technical comparison of Canon Raw Format and Portable Anymap — covering compression, feature support, browser compatibility, magic bytes, and when to choose each format.

Equal browser support

Feature Support

Feature Canon-CRW PNM
Transparency (Alpha) ✕ No ✕ No
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support Yes ✕ No
EXIF Metadata Yes ✕ No
ICC Color Profile ✕ No ✕ No
Canon Raw Format
image/x-canon-crw
Extension
.crw
Container CIFF (Camera Image File Format)
Compression Lossless JPEG (ITU-T81)
Algorithm
Lossless JPEG
Color Depth 10-bit (Per Channel), 12-bit (Per Channel)
Developed by Canon Inc.
Released 1998
Magic Bytes
49 49 1A 00 00 00 (Header) / 48 45 41 50 43 43 44 52 (HEAPCCDR signature near end)
Full Canon-CRW reference →
Portable Anymap
image/x-portable-anymap
Extension
.pnm
Container Netpbm
Compression Uncompressed
Algorithm
None
Color Depth 1-bit (PBM), 8-bit to 16-bit (PGM), 24-bit to 48-bit (PPM)
Developed by Jef Poskanzer (Netpbm Project)
Released 1988
Magic Bytes
50 31, 50 32, 50 33, 50 34, 50 35, or 50 36
Full PNM reference →

Browser Support Comparison

Browser Canon-CRW PNM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
Canon-CRW

Canon-CRW Strengths

  • Preserves original raw sensor data from foundational early digital SLR cameras, allowing for modern noise reduction and demosaicing algorithms to extract better images than software could in 2003
  • Files are remarkably small (often 6-8 MB) compared to modern 40MB+ raw files due to the lower megapixel count of early sensors
Limitations
  • Completely obsolete and utilizes the idiosyncratic CIFF structure rather than the modern, standardized TIFF/EP structure
  • Cannot be natively viewed in web browsers or standard operating system image viewers without specialized codecs
  • Less robust metadata support compared to modern CR2 or CR3 formats
PNM

PNM Strengths

  • Unparalleled simplicity: parsers and writers for PNM files can be written from scratch in C or Python in just a few minutes without relying on external libraries
  • Serves as an excellent foundational teaching tool for computer science students learning about image arrays and raster graphics
  • Flawlessly pipes through Unix command-line utilities for robust automated image processing (via the Netpbm suite)
Limitations
  • Zero compression natively results in astronomical file sizes, making it entirely impractical for web delivery or consumer storage
  • No support for standard metadata formats like EXIF, XMP, or ICC color profiles
  • No native alpha channel support in the classic PNM specification (though the newer PAM format 'P7' addresses this)

When to choose which format

Canon-CRW
Use Canon-CRW when…
  • Historical Digital Photography (2000-2004)
  • Non-destructive Image Post-Processing
  • Raw Imaging Archival
PNM
Use PNM when…
  • Unix/Linux Command-Line Image Processing (Netpbm suite)
  • Academic Computer Vision Research
  • Intermediary Format for Image Format Conversion
Share this comparison