JPEG XR
   HOME

TheInfoList



OR:

JPEG XR (JPEG extended range) is an image compression standard for continuous tone photographic images, based on the HD Photo (formerly Windows Media Photo) specifications that
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
originally developed and patented. It supports both lossy and lossless compression, and is the preferred image format for Ecma-388
Open XML Paper Specification Open XML Paper Specification (also referred to as OpenXPS) is an open specification for a page description language and a fixed-document format. Microsoft developed it as the XML Paper Specification (XPS). In June 2009, Ecma International adop ...
documents. The format is natively supported by
Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, released five years earlier, which was then the longest time span between successive releases of Microsoft W ...
and later as well as Internet Explorer 9, 10 and 11. Third-party support for the format includes Adobe AIR, Affinity Photo, Paint.NET, and Sumatra PDF.


History

Microsoft first announced Windows Media Photo at WinHEC 2006, and then renamed it to HD Photo in November of that year. In July 2007, the
Joint Photographic Experts Group The Joint Photographic Experts Group (JPEG) is the joint committee between ISO/ IEC JTC 1/ SC 29 and ITU-T Study Group 16 that created and maintains the JPEG, JPEG 2000, JPEG XR, JPEG XT, JPEG XS, JPEG XL, and related digital image standard ...
and
Microsoft Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
announced HD Photo to be under consideration to become a JPEG standard known as JPEG XR. On 16 March 2009, JPEG XR was given final approval as
ITU-T The International Telecommunication Union Telecommunication Standardization Sector (ITU-T) is one of the three Sectors (branches) of the International Telecommunication Union (ITU). It is responsible for coordinating Standardization, standards fo ...
Recommendation T.832 and starting in April 2009, it became available from the ITU-T in "pre-published" form. On 19 June 2009, it passed an ISO/IEC Final Draft International Standard (FDIS) ballot, resulting in final approval as
International Standard An international standard is a technical standard developed by one or more international standards organizations. International standards are available for consideration and use worldwide. The most prominent such organization is the International O ...
ISO/IEC 29199-2. The ITU-T updated its publication with a corrigendum approved in December 2009, and ISO/IEC issued a new edition with similar corrections on 30 September 2010. In 2010, after completion of the image coding specification, the ITU-T and ISO/IEC also published a motion format specification (ITU-T T.833 , ISO/IEC 29199-3), a conformance test set (ITU-T T.834 , ISO/IEC 29199-4), and reference software (ITU-T T.835 , ISO/IEC 29199-5) for JPEG XR. In 2011, they published a technical report describing the workflow architecture for the use of JPEG XR images in applications (ITU-T T.Sup2 , ISO/IEC TR 29199-1). Since the release of Windows 11, version 24H2 in October 2024, HDR images in JPEG XR can be set as HDR wallpapers.


Description


Capabilities

JPEG XR is an image file format that offers several key improvements over
JPEG JPEG ( , short for Joint Photographic Experts Group and sometimes retroactively referred to as JPEG 1) is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degr ...
, including: ; Better compression: JPEG XR file format supports higher compression ratios in comparison to JPEG for encoding an image with equivalent quality. ; Lossless compression: JPEG XR also supports lossless compression. The signal processing steps in JPEG XR are the same for both lossless and lossy coding. This makes the lossless mode simple to support and enables the "trimming" of some bits from a lossless compressed image to produce a lossy compressed image. ; Tile structure support: A JPEG XR coded image can be segmented into ''tile'' regions. The data for each region can be decoded separately. This enables rapid access to parts of an image without needing to decode the entire image. When a type of tiling referred to as "soft tiling" is used, the tile region structuring can be changed without fully decoding the image and without introducing additional distortion. ; Support for more color accuracy: JPEG XR supports a wide variety of image color representations in addition to the conventional 8-bit-per-sample YUV (formally
YCbCr YCbCr, Y′CbCr, also written as YCBCR or Y′CBCR, is a family of color spaces used as a part of the color image pipeline in digital video and digital photography, photography systems. Like YPbPr, YPBPR, it is based on RGB primaries; the two ...
) 4:2:0 encoding that is typically used for the original JPEG standard. : For support of images using an RGB color space, JPEG XR includes an internal conversion to the YCoCg color space, and supports a variety of bit depth and color representation packing schemes. These can be used with and without an accompanying alpha channel for shape masking and semi-transparency support, and some of them have much higher precision than what has typically been used for image coding. They include: :* Low bit-depth packings of RGB into 16 bits per pixel using 5 bits for each channel or 5 bits for red and blue and 6 bits for green :* 8 bits per component (sometimes called true color) packed into 24 or 32 bits per pixel :* 10 bits per component in a 32 bit packed representation (one of several higher-precision varieties of color representation known as deep color) :* 16 bits per component as integers, fixed-point numbers, or half-precision floating-point numbers packed into 48 or 64 bits :* 32 bits per component as fixed-point numbers or full-precision floating point numbers packed into 96 or 128 bits (for which lossless coding is not supported due to the excessively high precision) : JPEG XR also supports 16 bits per component (64-bit per pixel) integer
CMYK color model The CMYK color model (also known as process color, or four color) is a subtractive color model, based on the CMY color model, used in color printing, and is also used to describe the printing process itself. The abbreviation ''CMYK'' refers ...
. : 16-bit and 32-bit fixed point color component codings are also supported in JPEG XR. In such encodings, the most-significant 4 bits of each color channel are treated as providing additional "headroom" and "toe room" beyond the range of values that represents the nominal black-to-white signal range. : Moreover, 16-bit and 32-bit floating point color component codings are supported in JPEG XR. In these cases the image is interpreted as floating point data, although the JPEG XR encoding and decoding steps are all performed using only integer operations (to simplify the compression processing). : The shared-exponent floating point color format known as RGBE ( Radiance) is also supported, enabling more faithful storage of high-dynamic-range (HDR) images. : In addition to RGB and CMYK formats, JPEG XR also supports
grayscale In digital photography, computer-generated imagery, and colorimetry, a greyscale (more common in Commonwealth English) or grayscale (more common in American English) image is one in which the value of each pixel is a single sample (signal), s ...
and multi- channel color encodings with an arbitrary number of channels. : The color representations, in most cases, are transformed to an internal color representation. The transformation is entirely reversible, so that this color transformation step does not introduce distortion and thus lossless coding modes can be supported. ; Transparency map support: An alpha channel may be present to represent transparency, so that alpha blending overlay capability is enabled. ; Compressed-domain image modification: In JPEG XR, full decoding of the image is unnecessary for converting an image from a lossless to lossy encoding, reducing the fidelity of a lossy encoding, or reducing the encoded image resolution. : Full decoding is also unnecessary for certain editing operations such as cropping, horizontal or vertical flips, or
cardinal Cardinal or The Cardinal most commonly refers to * Cardinalidae, a family of North and South American birds **''Cardinalis'', genus of three species in the family Cardinalidae ***Northern cardinal, ''Cardinalis cardinalis'', the common cardinal of ...
rotations. : The tile structure for access to image regions can also be changed without full decoding and without introducing distortion. ; Metadata support: A JPEG XR image file may optionally contain an embedded ICC color profile, to achieve consistent color representation across multiple devices. : Exif and XMP metadata formats are also supported.


Container format

One file container format that can be used to store JPEG XR image data is specified in Annex A of the JPEG XR standard. It is a TIFF-like format using a table of '' Image File Directory'' (IFD) tags. A JPEG XR file contains image data, optional alpha channel data, metadata, optional XMP metadata stored as RDF/XML, and optional Exif metadata, in IFD tags. The image data is a contiguous self-contained chunk of data. The optional alpha channel, if present, can be compressed as a separate image record, enabling decoding of the image data independently of transparency data in applications which do not support transparency. (Alternatively, JPEG XR also supports an "interleaved" alpha channel format in which the alpha channel data is encoded together with the other image data in a single compressed codestream.) Being TIFF-based, this format inherits all of the limitations of the TIFF format including the 4 GB file-size limit, which according to the HD Photo specification "will be addressed in a future update". New work has been started in the JPEG committee to enable the use of JPEG XR image coding within the JPX file storage format – enabling use of the JPIP protocol, which allows interactive browsing of networked images. Additionally, a Motion JPEG XR specification was approved as an ISO standard for motion (video) compression in March 2010.


Compression algorithm

JPEG XR's designS. Srinivasan, C. Tu, S. L. Regunathan, and G. J. Sullivan,
HD Photo: A New Image Coding Technology for Digital Photography
, ''SPIE Applications of Digital Image Processing XXX'', SPIE Proceedings, volume 6696, paper 66960A, September 2007.
is conceptually very similar to
JPEG JPEG ( , short for Joint Photographic Experts Group and sometimes retroactively referred to as JPEG 1) is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degr ...
: the source image is optionally converted to a luma-chroma colorspace, the chroma planes are optionally subsampled, each plane is divided into fixed-size blocks, the blocks are transformed into the frequency domain, and the frequency coefficients are quantized and entropy coded. Major differences include the following: * JPEG supports bit depths of 8 and 12 bits; JPEG XR supports bit depths of up to 32 bits. JPEG XR also supports lossless and lossy compression of floating-point image data (by representing the floating-point values in an
IEEE 754 The IEEE Standard for Floating-Point Arithmetic (IEEE 754) is a technical standard for floating-point arithmetic originally established in 1985 by the Institute of Electrical and Electronics Engineers (IEEE). The standard #Design rationale, add ...
-like format, and encoding them as though they were integers) and RGBE imagery. *
JFIF The JPEG File Interchange Format (JFIF) is an image file format standard published as ITU-T Recommendation T.871 and ISO/IEC 10918-5. It defines supplementary specifications for the Digital container format, container format that contains the image ...
and other typical image encoding practices specify a linear transformation from RGB to
YCbCr YCbCr, Y′CbCr, also written as YCBCR or Y′CBCR, is a family of color spaces used as a part of the color image pipeline in digital video and digital photography, photography systems. Like YPbPr, YPBPR, it is based on RGB primaries; the two ...
, which is slightly lossy in practice because of roundoff error. JPEG XR specifies a lossless colorspace transformation, namely YCoCg-R, given (for RGB) by: ::V = B - R\, ::U = G - R - \left\lceil \frac \right\rceil ::Y = G - \left\lceil \frac \right\rceil * While JPEG uses 8 × 8 blocks for its frequency transformation, JPEG XR primarily uses 4 × 4 block transforms. (2 × 4 and 2 × 2 transformations are also defined for special cases involving
chroma subsampling Chroma subsampling is the practice of encoding images by implementing less resolution for Chrominance, chroma information than for luma (video), luma information, taking advantage of the human visual system's lower acuity for color differences t ...
; encoder options include YUV_444, YUV_422, YUV_420, and a monochrome Y_only.) * While JPEG uses a single transformation stage, JPEG XR applies its 4 × 4 core transform in a two-level hierarchical fashion within 16 × 16 ''macroblock'' regions. This gives the transform a wavelet-like multi-resolution hierarchy and improves its compression capability. * The DCT, the frequency transformation used by JPEG, is slightly lossy because of roundoff error. JPEG XR uses a type of integer transform employing a lifting scheme.C. Tu, S. Srinivasan, G. J. Sullivan, S. Regunathan, and H. S. Malvar,
Low-complexity Hierarchical Lapped Transform for Lossy-to-Lossless Image Coding in JPEG XR / HD Photo
, ''SPIE Applications of Digital Image Processing XXXI'', SPIE Proceedings, volume 7073, paper 70730C, August 2008.
The required transform, called the Photo Core Transform (PCT), resembles a 4 × 4 DCT but is lossless (exactly invertible). In fact, it is a particular realization of a larger family of binary-friendly multiplier-less transforms called the binDCT. * JPEG XR allows an optional overlap prefiltering step, called the Photo Overlap Transform (POT), before each of its 4 × 4 core transform PCT stages. The filter operates on 4 × 4 blocks which are offset by 2 samples in each direction from the 4 × 4 core transform blocks. Its purpose is to improve compression capability and reduce block-boundary artifacts at low bitrates. At high bitrates, where such artifacts are typically not a problem, the prefiltering can be omitted to reduce encoding and decoding time. The overlap filtering is constructed using integer operations following a lifting scheme, so that it is also lossless. When appropriately combined, the POT and the PCT in JPEG-XR form a lapped transform. * In JPEG, the image DC coefficients of the DCT blocks are predicted by applying DC prediction from the left neighbor transform block, and no other coeffients are predicted. In JPEG XR, 4 × 4 blocks are grouped into macroblocks of 16 × 16 samples, and the 16 DC coefficients from the 4 × 4 blocks of each macroblock are passed through another level of frequency transformation, leaving three types of coefficients to be entropy coded: the macroblock DC coefficients (called DC), macroblock-level AC coefficients (called "lowpass"), and lower-level AC coefficients (called AC). Prediction of coefficient values across transform blocks is applied to the DC coefficients and to an additional row or column of AC coefficients as well. * JPEG XR supports the encoding of an image by decomposing it into smaller individual rectangular ''tile'' area regions. Each tile area can be decoded independently from the other areas of the picture. This allows fast access to spatial areas of pictures without decoding the entire picture. * JPEG XR's entropy coding phase is more adaptive and complex than JPEG's, involving a DC and AC coefficient prediction scheme, adaptive coefficient reordering (in contrast to JPEG's fixed zigzag ordering), and a form of adaptive Huffman coding for the coefficients themselves. * JPEG uses a single quantization step size per DC/AC component per color plane per image. JPEG XR allows a selection of DC quantization step sizes on a ''tile'' region basis, and allows lowpass and AC quantization step sizes to vary from macroblock to macroblock. * Because all encoding phases except quantization are lossless, JPEG XR is lossless when all quantization coefficients are equal to 1. This is not true of JPEG. JPEG defines a separate lossless mode which does not use the DCT, but it is not implemented by libjpeg and therefore not widely supported. The HD Photo bitstream specification claims that "HD Photo offers image quality comparable to JPEG-2000 with computational and memory performance more closely comparable to JPEG", that it "delivers a lossy compressed image of better perceptive quality than JPEG at less than half the file size", and that "lossless compressed images … are typically 2.5 times smaller than the original uncompressed data".


Software support

A reference software implementation of JPEG XR has been published as ITU-T Recommendation T.835 and ISO/IEC International Standard 29199-5. The following notable software products natively support JPEG XR: The following
API An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
s and
software framework In computer programming, a software framework is a software abstraction that provides generic functionality which developers can extend with custom code to create applications. It establishes a standard foundation for building and deploying soft ...
s support JPEG XR, and may be used in other software to provide the JPEG XR support to end users: * Adobe AIR 3.3 and later *
Adobe Flash Player Adobe Flash Player (known in Internet Explorer, Firefox, and Google Chrome as Shockwave Flash) is a discontinuedExcept in China, where it continues to be used, as well as Harman for enterprise users. computer program for viewing multimedia ...
11.3 and later * Integrated Performance Primitives (IPP)
jxrlib
the reference implementation library * Windows Imaging Component (WIC) The 2011 video game Rage employs JPEG XR compression to compress its textures.


Licensing

Microsoft has patents on the technology in JPEG XR. A Microsoft representative stated in a January 2007 interview that in order to encourage the adoption and use of HD Photo, the specification is made available under the Microsoft Open Specification Promise, which asserts that Microsoft allows implementation of the specification for free, and will not file suits on the patented technology for its implementation, as reportedly stated by Josh Weisberg, director of Microsoft's Rich Media Group. As of 15 August 2010, Microsoft made the resulting JPEG XR standard available under its Community Promise. In July 2010, reference software to implement the JPEG XR standard was published as ITU-T Recommendation T.835 and
International Standard An international standard is a technical standard developed by one or more international standards organizations. International standards are available for consideration and use worldwide. The most prominent such organization is the International O ...
ISO/IEC 29199-5. Microsoft included these publications in the list of specifications covered by its Community Promise. In April 2013, Microsoft released jxrlib, an open source JPEG XR library under the BSD licence. This resolved any licensing issues with the library being implemented in software packages distributed under popular open source licences such as the
GNU General Public License The GNU General Public Licenses (GNU GPL or simply GPL) are a series of widely used free software licenses, or ''copyleft'' licenses, that guarantee end users the freedom to run, study, share, or modify the software. The GPL was the first ...
, with which the previously released "HD Photo Device Porting Kit" was incompatible.


See also

* AVIF, a compression format by Google, Mozilla and others in a group called the Alliance for Open Media *
JPEG JPEG ( , short for Joint Photographic Experts Group and sometimes retroactively referred to as JPEG 1) is a commonly used method of lossy compression for digital images, particularly for those images produced by digital photography. The degr ...
, an image format used for lossy compression (JPEG XR lossy is comparable with it.) *
JPEG 2000 JPEG 2000 (JP2) is an image compression standard and coding system. It was developed from 1997 to 2000 by a Joint Photographic Experts Group committee chaired by Touradj Ebrahimi (later the JPEG president), with the intention of superseding their ...
, an improvement intended to replace JPEG by the JPEG committee as of 2000 * JPEG XS, format for image and video with very low latency, more efficient for streaming high quality video * JPEG XL, is a royalty-free raster-graphics file format that supports both lossy and lossless compression. It is designed to outperform existing raster formats and thus to become their universal replacement. * PNG, a format for lossless compression, which JPEG XR lossless is comparable with * WebP, a format with lossy or lossless compression, proposed by
Google Google LLC (, ) is an American multinational corporation and technology company focusing on online advertising, search engine technology, cloud computing, computer software, quantum computing, e-commerce, consumer electronics, and artificial ...
in 2010 * Better Portable Graphics, a proposal by Fabrice Bellard in 2014 based on
HEVC High Efficiency Video Coding (HEVC), also known as H.265 and MPEG-H Part 2, is a video compression standard designed as part of the MPEG-H project as a successor to the widely used Advanced Video Coding (AVC, H.264, or MPEG-4 Part 10). In co ...
* HEIF, a 2015 format based on MPEG-H Part 12 (ISO/IEC 23008-12) and
HEVC High Efficiency Video Coding (HEVC), also known as H.265 and MPEG-H Part 2, is a video compression standard designed as part of the MPEG-H project as a successor to the widely used Advanced Video Coding (AVC, H.264, or MPEG-4 Part 10). In co ...
. Implemented by
Apple An apple is a round, edible fruit produced by an apple tree (''Malus'' spp.). Fruit trees of the orchard or domestic apple (''Malus domestica''), the most widely grown in the genus, are agriculture, cultivated worldwide. The tree originated ...
as the basis for their single-image format .HEIC on iPhone 7.


References


External links


Official website
;Information from Microsoft
JPEG XR Codec Overview
from Microsoft Learn
JPEG XR
from Microsoft Research
Bill Crow's Digital Imaging & Photography Blog

JPEG XR Plug-in for Photoshop (Windows)

JPEG XR Plug-in for Photoshop (Mac)
;Information from others
HD View
including posts about JPEG XR
This Week in Media podcast about HD Photo
featuring Microsoft's HD Photo Program Manager Bill Crow
Comparison WMP – JPEG 2000
Moscow State University Graphics and Media Lab, August 2006. ;Standardization *ITU-T publications
ITU-T T.Sup2 (03/2011) JPEG XR System architecture

ITU-T Rec. T.832 (03/2009, updated 12/2009) JPEG XR Image Coding Specification

ITU-T Rec. T.833 (09/2010) JPEG XR Motion Format

ITU-T Rec. T.834 (01/2010) JPEG XR Conformance Testing

ITU-T Rec. T.835 (01/2010) JPEG XR Reference Software
*ISO/IEC publications









{{ISO standards XR High dynamic range file formats Graphics file formats Microsoft Windows multimedia technology Open formats Computer file formats T.832 Lossy compression algorithms ISO/IEC 29199 Image compression