Free webp to jpg
Image MIME Reference
DNG

Adobe Digital Negative

image/x-adobe-dng
VS

Portable Anymap

image/x-portable-anymap
PNM

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

Equal browser support

Feature Support

Feature DNG PNM
Transparency (Alpha) Yes ✕ No
Animation Support ✕ No ✕ No
Progressive Loading ✕ No ✕ No
HDR Support Yes ✕ No
EXIF Metadata Yes ✕ No
ICC Color Profile Yes ✕ No
Adobe Digital Negative
image/x-adobe-dng
Extension
.dng
Container TIFF/EP
Compression Lossless JPEG / Deflate / Lossy JPEG (DNG 1.4+)
Algorithm
Lossless JPEG (Standard)Lossy JPEG (Compression option)Uncompressed
Color Depth 12-bit, 14-bit, 16-bit, 32-bit (Floating Point HDR)
Developed by Adobe Systems
Released 2004
Magic Bytes
49 49 2A 00 or 4D 4D 00 2A
Full DNG 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 DNG PNM
Chrome Chrome
Firefox Firefox
Safari Safari
Edge Edge
IE IE (Legacy)
DNG

DNG Strengths

  • Openly documented specification guarantees long-term archival accessibility, freeing photographers from proprietary manufacturer lock-in
  • Lossless compression algorithms often result in files 15-20% smaller than uncompressed proprietary raw formats
  • Natively supported by modern smartphone operating systems (iOS and Android) for high-end mobile photography
Limitations
  • Conversion from proprietary raw to DNG takes processing time and can strip specific, proprietary manufacturer metadata (like active D-Lighting or in-camera lens corrections)
  • File sizes are massive compared to standard JPEGs or HEIC files
  • Cannot be rendered natively in web browsers without server-side processing or WebAssembly decoders
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

DNG
Use DNG when…
  • Digital Photography Archival
  • Mobile Raw Capture (iOS ProRAW / Android Camera2 API)
  • Cross-Platform Raw Editing Workflows
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