What is a JPF File?
A JPF file is a JPEG 2000 Part 2 extended file: .jpf and .jpx are two extensions for the same format, commonly labeled JPX. It may represent features beyond those available in a basic JP2 image.
How JPF Files work
JPF is the filename extension that the JPEG 2000 Part 2 specification recommends for its extended file format, which the standard itself calls JPX. The registration of the image/jpx media type likewise names .jpf as the recommended suffix and accepts .jpx as an alternative, which is why both extensions circulate for one format. The format extends JP2, using the same box structure, with support for several codestreams, compositing layers, composition and animation instructions, wider color specifications, and richer metadata. A writer can also make an extended file compatible with the JP2 reader specification, in which case a basic JP2 reader can display a fallback view. Preservation and rendering workflows must distinguish that fallback from the complete intended presentation.
Key facts
- 1
.jpfand.jpxname the same Part 2 extended file format, not two codecs. The specification says JPX files should be given the.jpfextension, and theimage/jpxmedia type registration lists.jpfas recommended and.jpxas also acceptable, though not recommended for desktop files that are not tied to a media type. - 2The extension is not a reliable way to tell JPEG 2000 family files apart. They all begin with the same 12-byte signature, and the specification lets a JP2-compatible extended file use the JP2 extension. Read the File Type box instead. Its brand is
jp2plus a space in a JP2 file andjpxplus a space in a file completely defined by Part 2. Its compatibility list completes the picture: every file that conforms to the extended format must listjpxplus a space there, andjp2plus a space there marks a file that a JP2 reader can open. - 3A file can open and still be incomplete. Part 2 lets one file hold several JP2-style images, called compositing layers, and combine them by compositing or animation, while a reader of the JPX baseline profile is not required to support more than the first compositing layer. A single decoded image may therefore omit layers, frames, or the intended canvas. To find out, read the Reader Requirements box, which directly follows the File Type box: the writer declares the features in use there, with standard flags for multiple compositing layers, required compositing, and animation. A Composition box or several Compositing Layer Header boxes show the same thing directly.
- 4Compatibility with JP2 readers is a choice the writer makes, not a property of the format. The specification’s own example is an image in a CMYK color space, which a conforming JP2 reader will not interpret properly; a file that depends on such features will not display correctly in a JP2-only reader even though it shares the box structure.
- 5Codestreams after the first are located through the Part 2 box structure. The specification numbers codestreams from 0 in file order across Contiguous Codestream, Fragment Table, and Multiple Codestream boxes, and gives each one a matching codestream header when Codestream Header boxes are present. A reader that implements only JP2 ignores boxes it does not understand, so decoding the rest takes a reader that implements the Part 2 file format.
When JPF Files matter
Choose a JPF-aware decoder when an asset may contain advanced composition, color, or codestream features. Treating it as basic JP2 can omit information or cause unsupported-feature errors.
Sources
- ITU-T T.801 (06/2021) | ISO/IEC 15444-2:2021: JPEG 2000 extensions, Annex M, JPX extended file format (superseded edition with a free PDF)
- RFC 3745: MIME Type Registrations for JPEG 2000 (image/jpx and its file extensions)
- Library of Congress: JPEG 2000 Part 2 (Extensions) jpf (jpx) File Format
- JPEG committee: Overview of JPEG 2000 and its parts