Why should I do the extra work for using raw instead of jpg out-of-cam?

1_40Most, if not all, digital cameras come preconfigured by the manufacturer to save the photos in jpg format. This format is standardized by the Joint Photographic Experts Group, usually written as an acronym JPEG. You can recognize files following this standard by their extension .JPG or .JPEG.

The jpg format has a lossy compression algorithm to shrink the file size. The compression level is usually leveled by fine, good, moderate, web, small size or in percent levels. Regardless of the notation, the higher the quality, the bigger the files. Or to change the angle of view: the higher the compression, the worse the quality.

JPG has also another design problem. It only uses 8 bit for coding the colors. Each color is assembled by leveling the three color channels red, green and blue (RGB). I.e. a white point is saved a 100% red, 100% green and 100% blue. Thus you need 3 byte (1 for each color channel) for storing 1 pixel. Assuming, your camera sensor has a resolution of 3000×2000 pixel, you can easily calculate the size for a photo: 3000 x 2000 x 3 = 18000000 = 18000 kilo-byte = 18 mega-byte.
The compression algorithm tries to find neighboring pixel of similar (not same!!) levels in all of their 3 color channels and sets them as equal to save space. Especially in nice color gradients like skies at sunset you will see serious problems: the colors don’t blend smooth, but change in bigger steps instead. Very ugly. Have a look in the attached screenshot below.

Higher-quality and semi-professional cameras support more than 8 bit in their sensors. They use 12, 14 or even 16 bit for each of the three color channels. This results in 4096, 16383 or 65535 color nuances per channel instead of 256 when using 8 bit. Do you see the difference?
So, your camera is recording a scene with a color depth of 14 bit (thats 16383 color nuances), just like mine and JPG only uses 8 of them (for 256 nuances). How can this work? It works by compressing similar tones to only one. The result is, you’re loosing much of your details in the mid-tones, in the darks and in the highlights. While the highlights will tend to turn to white, the darks will tend to turn black.

One of the loopholes might be, using TIFF instead of JPG. This format preserves all information, because it uses 16 bit for each color channel and does not use any compression. The downside of this quality is the size. Using the same values as above a TIFF file would eat up 36 mega-byte. Or, by using values from my camera: while a JPG usually uses between 10 an 12 MB, a TIFF file has 155 MB.

Many cameras have another option: raw files! These files are called raw files, because they are stored without any touching inside the camera. They preserve all bits recorded by the sensor and use a lossless compression. But, these formats are camera dependant. Each manufacturer uses his own format and to make this even worse, it is different for each camera model. When using this format, each of my photos needs about 20-30 MB of storage space. And these raw files aren’t ready for use. They have to be developed in post-production, just like the films in analog times.

So, why should you use this option? There are already TIFF and JPG in place? Why shout I invest much more time for post-production? And, why should I invest more money in software, when I can get ready to use photos right out of my camera? My print shop ony takes JPG anyway.

That depends! Think of the color depth I mentioned earlier. You could get better quality prints by spreading the tones, lighten the darks and darken the highlights in post-production. So, you can get a more natural ambience without huge black and / or white areas without details. Another option is, you can change a few basic settings like the white-balance or slightly shifting the aperture lossless. And higher quality print shops also accept TIFF-file, and they know, why 🙂 Look at the web site of your print shop for accepted file formats.

So, you only can win by using raw-files. There is software available for Linux, Mac OS X and Windows for doing the necessary work called “the digital darkroom”. This name derived from the darkroom necessary in film days for developing the film and to process the film negatives to prints.

There’s a huge variety in products available. You don’t need to use Adobe’s Lightroom. There’s even software available as open-source for free and maybe even from your camera manufacturer using optimized setting for your camera and the lenses.

I attached a 100% crop from one of my photos taken last month in Belgium to demonstrate the (bad) effect. I shrinked the quality level to 40% before clipping out this part of the upper left corner of the sky. Keep in mind, depending on the dye distribution in a certain photo, the effect becomes visual earlier or later. Sometimes this effect is already there, when using a quality level of 80% on other photos it appears not until 50%. For my photos, I don’t use any compression.

Click on the photo, to see the effect better. Below I attached the original photo. Feel free, to drop me a note, a question or a suggestion in the box below.

Take care!



12 thoughts on “Why should I do the extra work for using raw instead of jpg out-of-cam?

  1. Thanks for this interesting post! I only recently started using raw and even though it adds some extra time it is definitely worth it! As you mentioned it is the digital dark room. I remember spending a whole afternoon in a dark room to only get a handful of photos. It makes you appreciate each and every shot a little more.

  2. Thank you for this post. I have always wondered by would you use RAW if you have ready made pics (to a degree)? No one was willing to or able to break it down they way you have. I was always told “beacuse it is better” but why??? Now that I understand I will begin to work with it more and this will also help me to learn more about PhotoShop Elements.

    Thank you!

    • It’s my pleasure, Robin.
      Yes, it’s definitely worth a try. For a start you could set your camera to save both formats, if possible. So you can see the raw file as well as the processed one and compare them. Photoshop Elements also breaks your photos down to 8 bit. Only the Photoshop CS (and the current CC versions) support 16 bit. This is, because Adobe wants to earn money by cutting of certain features from the ‘Elements’ version, although the rest of the features is sufficient for a photographer (expect the missing mask feature).
      While GIMP already has the masks feature, it still lacks the 16 bit support. But, version 2.10 is to be released soon, that will finally close this gap.

  3. Pingback: How to store photos on your disks | MyBlog - solaner

  4. Pingback: How to select your best photo from the bulk | MyBlog - solaner

  5. Pingback: Monochrome Madness 2-15 | MyBlog - solaner

  6. Pingback: High Dynamic Range Images | MyBlog - solaner

  7. Pingback: A new kid in the block: Aurora HDR | MyBlog - solaner

  8. Pingback: I’m back … | MyBlog - solaner

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s