What is a .jp2 file?
image/jp2
JP2 is the JPEG 2000 container format, a wavelet-based successor to JPEG that never displaced it on the web but is standard in archival, medical and geospatial imaging. It supports both reversible (lossless) and irreversible (lossy) coding in the same file format, plus arbitrary bit depths and region-of-interest decoding.
How to use a .jp2 file
Use an example JP2 file to test whether an image pipeline handles JPEG 2000 at all, and whether it distinguishes the lossless from the lossy coding mode. Many readers that accept the extension silently fall back to a thumbnail or fail on the reversible variant.
Download example .jp2 files
- Head and shoulders portrait of a black (jp2 lossless)The same 512x512 photograph written as jp2 lossless. Wavelet coding, reversible mode; shares an extension family with the lossy variant below. Every member of this group is identical pixels, so a decoder returning different dimensions or a different pixel count has lost something rather than simply produced a different file; the 24-bit PNG in this group is lossless and is the reference the lossy members are measured against Source plate a-av-f3.
- Head and shoulders portrait of a black (jp2 lossy)The same 512x512 photograph written as jp2 lossy. Irreversible wavelet coding. Every member of this group is identical pixels, so a decoder returning different dimensions or a different pixel count has lost something rather than simply produced a different file; the 24-bit PNG in this group is lossless and is the reference the lossy members are measured against Source plate a-av-f3.
- A Black man in his seventies with grey (jp2 lossless)The same 512x350 photograph written as jp2 lossless. Wavelet coding, reversible mode; shares an extension family with the lossy variant below. Every member of this group is identical pixels, so a decoder returning different dimensions or a different pixel count has lost something rather than simply produced a different file; the 24-bit PNG in this group is lossless and is the reference the lossy members are measured against Source plate p-market-sen.
- A Black man in his seventies with grey (jp2 lossy)The same 512x350 photograph written as jp2 lossy. Irreversible wavelet coding. Every member of this group is identical pixels, so a decoder returning different dimensions or a different pixel count has lost something rather than simply produced a different file; the 24-bit PNG in this group is lossless and is the reference the lossy members are measured against Source plate p-market-sen.
- Silver sedan parked on a suburban (jp2 lossless)The same 512x512 photograph written as jp2 lossless. Wavelet coding, reversible mode; shares an extension family with the lossy variant below. Every member of this group is identical pixels, so a decoder returning different dimensions or a different pixel count has lost something rather than simply produced a different file; the 24-bit PNG in this group is lossless and is the reference the lossy members are measured against Source plate v-car-sedan.
- Silver sedan parked on a suburban (jp2 lossy)The same 512x512 photograph written as jp2 lossy. Irreversible wavelet coding. Every member of this group is identical pixels, so a decoder returning different dimensions or a different pixel count has lost something rather than simply produced a different file; the 24-bit PNG in this group is lossless and is the reference the lossy members are measured against Source plate v-car-sedan.
- Overhead plate of fresh pasta with (jp2 lossless)The same 512x512 photograph written as jp2 lossless. Wavelet coding, reversible mode; shares an extension family with the lossy variant below. Every member of this group is identical pixels, so a decoder returning different dimensions or a different pixel count has lost something rather than simply produced a different file; the 24-bit PNG in this group is lossless and is the reference the lossy members are measured against Source plate f-plate-pasta.
- Overhead plate of fresh pasta with (jp2 lossy)The same 512x512 photograph written as jp2 lossy. Irreversible wavelet coding. Every member of this group is identical pixels, so a decoder returning different dimensions or a different pixel count has lost something rather than simply produced a different file; the 24-bit PNG in this group is lossless and is the reference the lossy members are measured against Source plate f-plate-pasta.
and 8 more in the library.