Free webp to jpg
JPM

JPEG 2000 Compound Image File Format

image/jpm Released 2003 · by Joint Photographic Experts Group (JPEG)

JPM is Part 6 of the JPEG 2000 standard. It is a compound document format that utilizes the Mixed Raster Content (MRC) imaging model to divide scanned pages into multiple layers (e.g., text, foreground, and background). This allows each layer to be independently compressed with the most efficient algorithm (such as JPEG 2000 for images and JBIG2 for text), resulting in highly optimized file sizes for complex documents.

Document & Archival Transparency Progressive Production Ready

Technical Specifications

MIME Type
image/jpm
Extensions
.jpm.jpgm
Container
ISOBMFF / JPM (ISO/IEC 15444-6)
Compression
Lossy & Lossless & Mixed Raster Content (MRC)
Algorithms
JPEG 2000JBIG2JPEGMMR
Color Depth
1-bit (Text/Masks), 8-bit, 16-bit, 24-bit
Metadata
EXIF XMP ICC
Capabilities
Transparency
Animation
Progressive Loading
Alpha Channel
HDR Support
Official Specification
Aliases: application/jpm

Magic Bytes & HTTP Headers

File Signature (Magic Bytes)
00 00 00 0C 6A 50 20 20 0D 0A 87 0A ... 66 74 79 70 6A 70 6D 20
ASCII: ....jP ........ftypjpm
HTTP Headers
Content-Type: image/jpm
HTML Accept Attribute
accept="image/jpm, .jpm"

Browser Support Matrix

Browser Status Min Version
Chrome Chrome
Not Supported
Firefox Firefox
Not Supported
Safari Safari
Not Supported
Edge Edge
Not Supported
Internet Explorer Internet Explorer
Not Supported Legacy

Advantages & Limitations

Advantages
  • Highly optimized for scanned documents, drastically reducing file sizes without sacrificing the readability of text or the quality of embedded photos
  • Supports multi-page documents within a single file
  • Object-based architecture allows for complex layout representation and independent extraction of elements
Limitations
  • Failed to achieve widespread adoption, largely being overshadowed by PDF/A and DjVu
  • Zero native web browser compatibility
  • Requires complex, specialized software to properly encode and decode the multi-layered MRC structure

Developer Code Snippets

import magic
print(magic.from_file('document.jpm', mime=True)) # May default to generic 'image/jp2' depending on libmagic rules
const FileType = require('file-type');
const type = await FileType.fromFile('document.jpm');
console.log(type?.mime); // Standard libraries may struggle to differentiate JPM from standard JP2
import "net/http"
// Custom ISOBMFF parsing is required to read the 'jpm ' brand inside the ftyp box.
$mime = mime_content_type('document.jpm');
echo $mime; // Standard implementations often map this to application/octet-stream

File Detection Steps

How to programmatically detect a image/jpm file by reading its raw bytes:

  1. 1 Check the first 12 bytes for the JPEG 2000 signature box (00 00 00 0C 6A 50 20 20 0D 0A 87 0A)
  2. 2 Verify the following File Type (ftyp) box contains the major brand string 'jpm ' (6A 70 6D 20)

Software Support

K
Kakadu Software
L
LuraDocument (Foxit)
O
OpenJPEG

Conversion Tools

Share & Embed

Markdown Badge
JPM Format Badge
[![JPM Format](https://freewebptojpg.com/mime/image/jpm/badge.svg)](https://freewebptojpg.com/mime/image/jpm)
Interactive iframe Widget
<iframe src="https://freewebptojpg.com/mime/image/jpm/embed" width="100%" height="280" style="border:1px solid #cbd5e1;border-radius:8px;" title="JPM Specs"></iframe>

JSON API

All data on this page is available as a free, open JSON API. Use it in your project, documentation, or tooling.

GET https://freewebptojpg.com/mime/image/jpm.json Open JSON
Free to use
No auth required
CORS enabled
Use from any domain
Cached 24h
Cache-Control headers set

Frequently Asked Questions

What is the difference between JP2 and JPM?

While both belong to the JPEG 2000 family, JP2 (Part 1) is designed for single, continuous-tone still images. JPM (Part 6) is a compound document format designed for multi-page, multi-layered documents, similar in purpose to PDF or DjVu, allowing mixed compression methods within a single page.

What is the magic byte for a JPM file?

JPM files begin with the standard JPEG 2000 12-byte signature box (00 00 00 0C 6A 50 20 20 0D 0A 87 0A). They are uniquely identified by the 'ftyp' box that immediately follows, containing the major brand 'jpm ' (6A 70 6D 20 in hex).

Can I open JPM files in a web browser?

No. Modern web browsers do not natively support JPM files. They require specialized document viewers, or they must be converted to standard web formats like PDF or standard images for viewing.

Related Formats

Share this format