Save and inspect a JPEG 2000 JP2 file
Admin ·
Save a JPEG 2000 image in a JP2 container. Set any rotation and maximum side length. Leave the size limit at zero to retain the rendered dimensions.
Check the container and the rendered image
Start with a 65 × 41 PNG with one transparent corner and a semitransparent edge. Open the result in a JPEG 2000 reader. Confirm a 65 × 41 image, a clear corner and a soft edge. A JP2 file begins with its signature box and contains a JPEG 2000 codestream.
Choose a source with enough detail
The encoder uses its full-quality setting on the rendered 8-bit image. A JPG that already contains ringing around letters carries that ringing into the JP2. Use a clean source when comparing small details at high zoom.
Check that the recipient accepts a JP2 container
Ask the consuming application for a sample it can open. A request for a raw JPEG 2000 codestream and a request for a .jp2 image can refer to different containers. Open the exported file in that application before converting a collection.
For scientific imagery, keep the original with its measured sample values. A conversion of the rendered 8-bit pixels is suitable for comparing appearance. It cannot recover readings that were lost when the image was first rendered.
Common questions
Will converting an 8-bit JPG create more image detail?
The JP2 contains the pixels recovered from the original JPG. Earlier quantization and compression artifacts are part of those pixels.
How do I inspect several TIFF pages?
Convert the TIFF, download the ZIP and open the numbered JP2 files in order. Each has the geometry of its source page after your chosen transforms.