Helping people with computers... one answer at a time.

Many digital cameras can save in either a “raw” or “jpg” format. I'll look at the difference between the two and offer guidelines on which to use.

I am new to this digital photography. What are “RAW” and “JPEG”? What's the difference? What do they do? When do you use them? Where do you find them?

The best analogy that I've seen compares RAW format to old-style photographic film negatives. They're never something that you want to look at directly, but if properly processed, they can be used to produce the image formats that you're more commonly used to seeing.

Formats like jpeg (aka jpg).

I'll look at both in a little more detail, discuss what I do, and then suggest a course of action.

RAW format

35mm Film Negatives

First, we need to clear something up: there's no single RAW file format. There are probably hundreds of different formats that all might end up being called RAW.

In short, RAW format captures the raw, unprocessed data from your digital camera. And by raw and unprocessed, I mean the data captured by the photo sensors in your particular model of camera - and as it turns out, those might not even be in what we consider as a standard "pixel" form yet.

As each camera's technology is different, so too is the data that it might save into a RAW formatted file. Different camera use different sensors which capture light and color in different ways. The RAW format records that data in as close to its original form as possible. But that means that what appears to be a single "raw" formatted file could still be unique to any of the hundreds of different camera makes and models that there might be.

RAW format is not typically compressed, but even when it is, it typically is a larger format due to the fact that is simply contains much more data about the image.

JPEG format

JPEG, or often just jpg (still pronounced "jay-peg"), is a standard file format that contains an encoded and compressed image.

JPEG itself stands for the Joint Photographic Experts Group, which created the specification for this standard format.

JPEG is what's called a "lossy" format. It uses the characteristics of the human eye, as well as the characteristics of photographs to actually remove some clarity from the image in order to achieve its compression.

Because conversion to .jpg format actually reduces the quality or "fidelity" of the image, it's not appropriate for all situations, but it is particularly adept at providing a very high degree of compression on photographs before the effect becomes noticeable by most people.

JPEG format has become a defacto standard for digital images and photographs, and can be produced by almost all digital cameras, manipulated by almost all digital imaging software, and can be read and displayed on nearly all computers.

RAW versus JPEG

“If you're a casual photographer, JPEG's probably just fine.”

If JPEG is so ubiquitous and (apparently) "good enough" that most people would never notice, why would we ever want to save in anything else?

Two reasons come to mind:

  • To at least save and archive photographs in the highest fidelity and in a form as close to its original as possible. Somewhat like saving your old photograph's negatives.

  • To be able to manipulate aspects of the photograph that can only best be manipulated in raw form. Somewhat like adjusting the image when making a print from that negative.

That last point deserves a little more discussion, as it's perhaps the most important to those who care.

For example, a RAW image format might save information that captures the camera's exposure setting at the time that the photo was taken. Additional RAW data within the image than might allow you to (within limits) actually manipulate the effective exposure as it's processed - perhaps correcting for an under- or over-exposed photograph. While the same effect can be simulated somewhat by playing with brightness and contrast on a processed photo such as a .jpg, the quality of the result is typically significantly better if the operation can be performed on the raw image.

Which should you use?

If you're a casual photographer, JPEG's probably just fine. The pictures that you take can be immediately shared with anyone and viewed anywhere without any additional work on your part.

On the other hand, if you're a photo buff planning to tweak your photos in programs like Lightroom or Photoshop, or if you just want to archive the highest possible quality image, then raw might be the appropriate choice. Do realize however that unless your camera can save in both RAW and JPEG at the same time (some do), that you'll need to process your RAW files into JPEGs in order to share them with others. That, in turn, will require software that understands the RAW format used by your camera.

What do I do?

I've dabbled in photography for years - longer than computing, actually. So I'm definitely the kind of person who wants to be able to not only save those images in the highest quality possible, but I play with 'em before I post 'em. I'll adjust color and exposure and crop and whatnot - much like I did back in my darkroom days.

So I have my camera save all my photographs in RAW format.

It's so much less messy than that old darkroom.

Article C4961 - October 23, 2011 « »

Share this article with your friends:

Share this article on Facebook Tweet this article Email a link to this article
Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
14 Comments
John
October 25, 2011 10:11 PM

Thanks Leo and Rodulf Rodriguez for excellent info.

I settled for Serif Photo Plus for the final price of $26 US. Serif has been around since my Apple 2C and does not have intrusive DRM licensing like Corel. I think you can legally instal it on more than one computer.

Download the trial and wait until they send you an offer for half price.

Until a camera matches the human eye and brain then we will always need to manipulate and tweak.

PTP
October 26, 2011 5:11 AM

Actually, you can open a JPG, edit it in whatever you like, save it as a JPG once again, open it in Capture NX2 and then save it as an NEF file - Nikon's version of RAW. In fact, NEF is the default filetype for saving in Capture NX2. I only shoot with Nikons so that's the only brand I know but I assume (perhaps incorrectly) that this can also be done with software from other camera manufacturers?

I understand that the result of creating a RAW file like this is not the same as obtaining a RAW file (NEF) directly from the camera. Once the file is saved as a JPG (in the camera) the extra data that would have been in an NEF file is gone, forever. Subsequently saving a JPG as an NEF file in software doesn't restore the lost data; that can't be done. It does, however, create a new NEF file. What I don't know is if (apart from the lost data) an NEF file created from a JPG in Capture NX2 software is exactly the same sort of NEF file created in a Nikon camera. Does anyone else know? Do you know, Leo?

Probably not, but more importantly it would be obvious with a close look at the pixel data that the image had originated as a .jpg. (When you look VERY closely jpg compression is visible, and converting to NEF would preserve every pixel, including the visual results of that compression.)
Leo
26-Oct-2011
GregB
October 27, 2011 7:23 AM

I use PhotoScape- easy to use, many enhancement options, continually updated, and FREE! (It has a RAW converter)
http://www.photoscape.org/ps/main/index.php

Elizabeth
October 27, 2011 2:22 PM

question: can anyone tell me how many raw shots can I get on 4 gb sdhd card?

Depends on the specific camera and the resolution you're shooting at. Take a few in RAW, look at how big they are and then simply divide 4 gig by that (average) number for an estimate. Best you'll get is an estimate, by the way, since it also can depend on exactly what the pictures are of.

Leo
28-Oct-2011
Mark J
October 27, 2011 2:58 PM

@Elizabeth
It depends on the size of the RAW file. If the file is 1Mb, then you can get 4,000 photos. If the RAW file is 4Mb then it can hold 1,000 photos, and so on.