Raw Image Format: Pros and Cons

What does it bring, and is it worth the trouble?

Back to the Nitty-Gritty section,
with articles on technical aspects of photography.

The first decision you'll have to make before using your camera is what format do you want to save your image files in. There are two choices here: raw (proprietary for every camera maker) and RGB (JPEG or TIFF standards).

Raw image files

Raw image files are often referred to as RAW, capitalized, which is an obvious error (this is not an acronym but a common word, and that's what some people should have learned at SCHOOL if they were paying ATTention).

Raw files contain the recording of the signal as picked off individual red-, green-, and blue-filtered photosites of the sensor, without any in-camera processing. Consider them a digital version of an undeveloped film: the final image will depend on how you develop it and how you make the prints.

Every manufacturer uses a different raw image format, which may also vary from one camera to another, therefore usually you need a specialized raw converter application (or plugin) to translate the photosite information into RGB pixels.

This translation, also known as raw development, involves two main steps:

  • Conversion proper (or demosaicing), which translates signal values from individual R, G, and B photosites into combined RGB values of image pixels. Obviously, two out of three components of every pixel have to be obtained by interpolation from its neighbors; this is how, say, four megapixels worth of information becomes a twelve-megapixel image — see my article on that subject.
  • Image adjustment: sharpening, white balance, tonal curve. In most of raw development programs (embedded in firmware, or stand-alone) this is done while the image still has 16 bits per color (even if the original signal had less, like 10 or 12), before conversion to the eight-bit RGB.

Depending on the camera model, the raw data may be compressed or not, with the compression always being lossless. It can be also packed (with individual photosite information not aligned with byte boundaries). Both these factors (often confused) will affect the raw image file size. On average, expect a raw image to require from one to two megabytes of storage per megapixel.

For example, the Olympus Raw Format (ORF) stores information from two 12-bit photosites in three bytes; an 8 MP image will be written as a 13.6 MB file (obviously, an extra 1.6 MB of overhead is used to store additional information). The Canon 350D (Digital Rebel XT has the same number of pixels and the same color depth (12 bits/color), but is uses some compression, which results in files of about 8 MB.

TIFF (Tagged Image Format)

In its simplest version, this format contains uncompressed RGB information on all image pixels, with eight bits per color image depth (the format allows for 16 bits/color, but most manufacturers do not use that option). Obviously, the sensor signal is translated into RGB before the file is written, therefore one might compare TIFF files to a developed negative. This is because some corrections (like, for example, color balance) have been already applied to the image, and while new ones can be applied on top of them, this is not the same as working with the original information. (Think of that as color-correcting of a not-so-well developed negative at the printing stage.)

Being uncompressed, TIFF files do not suffer from compression artifacts (or any other forms of data loss), but they are fairly large (3 megabytes per megapixel, plus overhead). For the E-500, a full-size TIFF file is about 24.6 MB (the 350D does not support this format).

JPEG (Joint Photographic Expert Group)

Like in TIFF, in this format the image is already translated into RGB, but the data is also compressed. This is a "lossy" compression, i.e., some information is lost in the process (or some artifacts introduced), but at lower compression ratios (say, 1:4 or below) these effects are negligible, really not worth worrying about, and even at 1:8 they are still quite small.

In our film metaphor, we could compare JPEG files to developed negatives (maybe from a minilab, not a custom shop), good enough for a great majority of applications. (COmparisons to a Polaroid print are not really good, as JPEG images submit themselves to adjustment much better than a copy of a print would.)

Thanks to the compression, JPEG files are much smaller than TIFF or ORF ones: an 8 MP JPEG image will use about 6 MB of storage at 1:4, or 3 MB at 1:8.

In our further discussion we will be approaching TIFF and JPEG file format as two forms of RGB, with the differences due to compression of rather secondary importance,

Raw or RGB?

Why not to use the raw format all the time if it contains the full, unaltered information of the captured image? Well, nothing comes quite free; here are the pros and cons:

  1. [PRO] Raw files contain the full, unaltered information as taken off the sensor, while in RGB (TIFF or JPEG) ones this information is already converted, for better or worse, using the current camera settings. Performing that conversion on a PC, you can use more powerful and/or most up-to-date software, possibly better than the camera firmware.
  2. [CON] With raw files you need to do the conversion before you can edit, print, or even view your images; an extra step.
  3. [PRO] If and when a better version of the conversion software becomes available, you may "develop" your raw files, at least those which you want, again.
  4. [CON] If, a few years down the road, your camera manufacturer (or a third party) no longer offers a raw converter working with your current operating system, you may kiss your (undeveloped) digital negatives goodbye.
  5. [PRO] Some of the camera settings are applied only to the raw image development process, not to the picture-taking itself. These are: color balance, sharpening, contrast, gradation. Therefore you may adjust these parameters as needed during the raw development, and tweak them to your liking. True, most of these corrections can be applied also to RGB images, but usually within a smaller range and/or with not as good results.
  6. [CON] This extra tweaking is not always necessary; many people who use the raw format "just in case", limit themselves during the off-camera development to using just the parameters as set during the shooting (as these settings are remembered, if not applied, in the raw files).
  7. [CON] Raw images take much more storage space than JPEG ones; even at the conservative 1:4 compression the difference is by a factor of two. It is easier to run out of storage using the raw format.
  8. [CON] A related issue: the internal memory buffer in your camera (in most models at least) stores RGB images after conversion from raw. This means that in sequential shooting you will get longer sequences using JPEGs.
  9. [PRO] Starting from the raw file involves one fewer (lossy) compression process: less image degradation. (This can be alleviated by using a low in-camera JPEG compression.)

Contrary to what many believe, using the raw format does not offer significantly better protection from over- or under-exposure. The RGB conversion process uses the whole tonal range recorded in the raw image, and if your highlights are blown out, the corresponding photosites are oversaturated regardless on how you save your images: before or after the RGB conversion. On the other hand, the extra bits in the raw information may allow you to make better use in extracting the available detail from shadows or highlights by adjusting the brightness translation curve(s). Still, the detail has to be there to start with, and the photographer has to understand how the tonal curves are used.

An educated choice

Using the raw format without understanding why, and without taking an advantage of it during postprocessing misses the point. Watching some discussion forums I've seen many photographers who do it just because "it is better", or so they've heard; then they spend their time converting the images to RGB with use of the settings as dialed when the picture was shot. (These may be the same people who complain that a 500 mm, F/5.6 lens is "too heavy" and "too dark" at the same time. What good are engineers if they cannot change the laws of physics?)

The bottom line in this approach is that you are getting the same RGB images as those converted in-camera; hardly worth the hassle. On the plus side, if you are unhappy with the default conversion, you may change the parameters and get things done your way, which may (it does not have to) bring better results than adjusting images already converted into RGB.

So, what is my advice? Sorry to disappoint you, I do not have one; you will have to make your own decision, carefully considering the pros and cons listed above, also taking into account your image postprocessing skills.

While I believe that 90% of photographers will be perfectly happy storing their images as low-compression (1:4 or less) JPEGs, you may belong to the remaining 10%.

As for myself, more than 95% of the time I convert my pictures to RGB in-camera, saving them as 1:4 JPEGs. While I do postprocess all my images, I find that even when starting from RGB I still have enough room left for the adjustments I need. Most importantly, I keep the in-camera sharpening below the default level: once your converted image is oversharpened, there is no way back, and the effects can be quite ugly.

Only in less than 5% of remaining cases I do switch to the raw format; this usually happens in trickier WB situations.

Actually, an experienced photographer will usually have the exposure, white balance, and contrast set so that an off-camera JPEG will be just fine; in such cases going through the raw stage means extra hassle, time, and storage space. It is the less fluent photographers who may profit from the extra postprocessing flexibility offered by the raw format, but they are also least likely to get that step right. Ironically, the raw format offers most of its advantages to those who need them least! (This is also how the bank loan industry works, nothing new under the sun.)

While many newer cameras offer an option to write both raw and JPEG versions of the same image, I never felt a need to use this feature and I never did.

Now the only thing you have to do is to make your mind...

Web references

This article was intended to be just a quick introduction to the subject. You may want to dig a bit deeper, and here are my recommendations.


Back to the Nitty-Gritty section,
with articles on technical aspects of photography.

Home: wrotniak.net | Mail | Search this site | Change font size
Photo Tidbits | The Gallery | Going Places | Top Rank Shareware | HP Palmtop Corner
The Works | Kalkulator | Midget | Spheric | Uptime Snooper | Mr. Matt

Posted 2006/10/06 Copyright © 2006 by J. Andrzej Wrotniak