• site home
  • blog home
  • galleries
  • contact
  • underwater
  • the bleeding edge

the last word

Photography meets digital computer technology. Photography wins -- most of the time.

You are here: Home / The Last Word / JPEG 2000

JPEG 2000

December 3, 2012 JimK Leave a Comment

In the January, 2013 issue of Shutterbug, which arrived at my house last week, David Brooks has his usual column, “Q&A Digital Photography”. A reader asks a question about an earlier column (that I didn’t notice) that said the JPEG 2000 used lossless compression.

Mr. Brooks gives the following answer:

The file formats supported by most applications used for digital photography are of two basic types: 1) lossy compression versions like JPEG, that became popular many years ago because they result in small file sizes, but this is no longer an important advantage because file storage space is now very inexpensive; 2) lossless formats like TIFF, PSD and JPEG 2000 among others that do not throw out data to obtain a small file size. So, if you want to preserve the data in an image file, do not resave in JPEG or any lossy file format.

Mr. Brooks is correct when he says that some file formats employ lossy compression and some employ lossless compression. He is incorrect by virtue of a technicality in his assignment of the original JPEG to the lossy category. That’s not sufficient reason for me to write a post on the subject. Brooks is also wrong when he says that JPEG 2000 is unequivocally lossless, and his advice to photographers to save and resave their files in JPEG 2000 to prevent loss of information may cause some people to use JPEG 2000 inappropriately.

First, the technicality. The original JPEG supports both lossy and lossless compression. The lossy compression is based on applying the discrete cosine transform (DCT) to eight pixel by eight pixel blocks of the image. The lossless compression uses differential pulse code modulation. The reason that it’s a technicality is that none of the photographic image processing programs use the lossless compression algorithm exclusively, because the amount of file space it saves is small – usually less than 50%. So, from the point of view of most photographers, JPEG is lossy.

Moving on to JPEG 2000, a similar statement applies: JPEG 2000 supports both lossy and lossless compression through two different forms of wavelet compression. However, it’s not a technicality, since some image processing programs, notably Photoshop, support both modes. The default in Photoshop is lossy compression, but you can select lossless by clicking a checkbox:

In order to prove that JPEG 2000 without the lossless box checked is lossy, I brought this image in to Photoshop:

Here’s the histogram:

I saved it as JPEG 2000 with the lossless box unchecked, and read it back into Photoshop. Here’s the histogram:

And, just to make it more explicit, here’s the histogram of the difference between the two images:

Stored as an uncompressed TIFF, the original file was 1732KB. Saved as lossless JPEG 2000, it was 1518 KB.

Here’s the bottom line. As a lossy file format, JPEG 2000 offers somewhat better image quality at the same file size, or somewhat smaller file size at the same image quality as the original JPEG. As a lossless file format, it offers somewhat smaller file sizes than uncompressed formats. If you want to use it as a lossless format, you need to make sure you pick the right options.

 

Some references:

JPEG 2000.

JPEG.

The Last Word

← Hedonic adaptation Raw histograms →

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

May 2025
S M T W T F S
 123
45678910
11121314151617
18192021222324
25262728293031
« Apr    

Articles

  • About
    • Patents and papers about color
    • Who am I?
  • How to…
    • Backing up photographic images
    • How to change email providers
    • How to shoot slanted edge images for me
  • Lens screening testing
    • Equipment and Software
    • Examples
      • Bad and OK 200-600 at 600
      • Excellent 180-400 zoom
      • Fair 14-30mm zoom
      • Good 100-200 mm MF zoom
      • Good 100-400 zoom
      • Good 100mm lens on P1 P45+
      • Good 120mm MF lens
      • Good 18mm FF lens
      • Good 24-105 mm FF lens
      • Good 24-70 FF zoom
      • Good 35 mm FF lens
      • Good 35-70 MF lens
      • Good 60 mm lens on IQ3-100
      • Good 63 mm MF lens
      • Good 65 mm FF lens
      • Good 85 mm FF lens
      • Good and bad 25mm FF lenses
      • Good zoom at 24 mm
      • Marginal 18mm lens
      • Marginal 35mm FF lens
      • Mildly problematic 55 mm FF lens
      • OK 16-35mm zoom
      • OK 60mm lens on P1 P45+
      • OK Sony 600mm f/4
      • Pretty good 16-35 FF zoom
      • Pretty good 90mm FF lens
      • Problematic 400 mm FF lens
      • Tilted 20 mm f/1.8 FF lens
      • Tilted 30 mm MF lens
      • Tilted 50 mm FF lens
      • Two 15mm FF lenses
    • Found a problem – now what?
    • Goals for this test
    • Minimum target distances
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Printable Siemens Star targets
    • Target size on sensor
      • MFT
      • APS-C
      • Full frame
      • Small medium format
    • Test instructions — postproduction
    • Test instructions — reading the images
    • Test instructions – capture
    • Theory of the test
    • What’s wrong with conventional lens screening?
  • Previsualization heresy
  • Privacy Policy
  • Recommended photographic web sites
  • Using in-camera histograms for ETTR
    • Acknowledgments
    • Why ETTR?
    • Normal in-camera histograms
    • Image processing for in-camera histograms
    • Making the in-camera histogram closely represent the raw histogram
    • Shortcuts to UniWB
    • Preparing for monitor-based UniWB
    • A one-step UniWB procedure
    • The math behind the one-step method
    • Iteration using Newton’s Method

Category List

Recent Comments

  • JimK on Goldilocks and the three flashes
  • DC Wedding Photographer on Goldilocks and the three flashes
  • Wedding Photographer in DC on The 16-Bit Fallacy: Why More Isn’t Always Better in Medium Format Cameras
  • JimK on Fujifilm GFX 100S II precision
  • Renjie Zhu on Fujifilm GFX 100S II precision
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • Ivo de Man on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • JimK on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF
  • Ivo de Man on Fuji 20-35/4 landscape field curvature at 23mm vs 23/4 GF

Archives

Copyright © 2025 · Daily Dish Pro On Genesis Framework · WordPress · Log in

Unless otherwise noted, all images copyright Jim Kasson.