The Raw vs JPEG debate is one of the never-ending wars in photography. Some photographers say shoot in Raw, while others say shoot in JPEG. What is the Raw format in digital photography and what are its advantages and disadvantages when compared to JPEG?
Let’s get down to the true nature of these formats so you can make the right choice!
So, which format should you use? JPEG is a no-brainer because it’s the default image format that is used in most smartphones and point-and-shoot cameras, so we know what to expect from it.
But, if you change your camera to shoot Raw, you might notice how small your memory card will appear. Moreover, the image looks exactly the same on the rear LCD and yet it consumes more than three times more storage.
Sounds familiar? If you are in a similar situation, do not make the mistake of thinking Raw offers no advantages and abandoning Raw. You truly need to understand all the advantages and disadvantages of both formats before making this important decision, because you might be sorry that you didn’t later.
Table of Contents
1. What is a Raw Image?
A Raw image (also known as a “digital negative”) is an image file that contains unprocessed or minimally processed data from a digital camera’s sensor. Similar to raw food ingredients that need to be prepared and cooked before consumption, a Raw image also needs to be post-processed in software before it is ready to be printed, shared or shown on a display device.
Unlike JPEG files that can be easily opened, viewed and printed by most image-viewing / editing programs, Raw is a proprietary format that is tied to a specific camera model. Therefore, in order for the software to be able to work with a Raw file, it must be compatible with the particular camera the Raw image was captured with. Post-processing Raw images can yield greater dynamic range (with better highlight and shadow recovery options), superior colors and in some cases can even provide more detail when compared to JPEG images.
Raw files typically consist of three main parts: the actual Raw data from the image sensor, a camera-processed full-size JPEG preview + thumbnail, and all relevant header and metadata information. For cameras to be able to display the recorded image on the rear LCD or on the electronic viewfinder, the camera-processed JPEG preview is used.
The image header, as well as parts of the metadata are used for interpreting sensor image data by Raw conversion software, while other metadata information such as exposure settings, camera and lens model, date/time, etc. can be used for filtering, sorting and cataloging images.
1.1. Advantages of Raw Format
- Far more shades of color. Compared to an 8-bit JPEG image that can only contain up to 16.8 million colors (256 tonal values for Red, Green and Blue channels), a 12-bit Raw image can contain up to 68.7 billion colors (4,096 tonal values per color channel). Stepping up to 14-bit Raw images increases RGB tonal values significantly to 16,384, which boosts the potential to 4.4 trillion colors.
- Wider dynamic range and color gamut. A Raw image contains wider dynamic range and color gamut compared to a JPEG image. For highlight and shadow recovery when an image or parts of an image are underexposed or overexposed, a Raw image provides far better recovery potential compared to JPEG.
- Finer control and adjustment potential. When a Raw image is generated, all camera settings, including camera-specific and manufacturer-specific information (also known as image metadata), are added into the file, along with the Raw data from the image sensor. Since the Raw data is unmodified, you can adjust your image wtihout relying on the baked-in settings of your camera’s JPEG engine.
- Can adjust color space after image capture. Similar to white balance, color space (such as sRGB or Adobe RGB) is not saved into Raw images either, which means that you can change it to any color space later on.
- Raw images are lossless. Unlike JPEG, Raw images typically utilize lossless compression (unless specific “lossy” Raw compression is selected), meaning they do not suffer from image-compression artifacts.
- Better sharpening potential. No image-sharpening is performed on Raw images, which means that you can use better and more complex sharpening algorithms for your photos.
- Can be used to convert to other Raw formats. When using Raw image format, images can be merged together to create HDR or panoramic images in DNG file format when using Adobe Photoshop Lightroom. This opens up opportunities to edit images just like Raw files, with maximum editing potential and recovery options.
- Proof of ownership and authenticity. Unlike JPEG images that can be easily manipulated, Raw images can be used as evidence of your ownership and authenticity of the photograph. If you saw an alien and have a Raw image to prove it, nobody would be able to argue that you manipulated the image in Photoshop :)
1.2. Disadvantages of Raw format
- Must be post-processed. Raw files require post-processing and conversion to a format like JPEG before they can be normally viewed, which adds time to your photography workflow.
- Requires more storage. Raw images take up much more storage space than JPEG images. This means that your memory cards can store fewer images and your camera buffer can quickly fill up, causing the camera frame rate to drop down significantly.
- Raw format compatibility. Raw files are not standardized across different manufacturers. If you have a brand new camera that just got released, you might need to wait for a while for software companies to catch up and update their software so that your Raw files can be opened and worked on.
- Sharing issues. You will have to convert Raw files to a compatible format like JPEG or TIFF before you can give them to your friends and clients, as they might not have the proper tools to view them.
- More files to manage. Because Raw files cannot be modified by third party software, your settings will have to be stored in a separate sidecar (XMP) file. In addition, you will most likely be storing post-processed JPEG images as well, which translates to more files to manage.
- Longer backups. Due to larger file sizes of Raw images, the backup procedure takes much more time.
2. What is a JPEG Image?
JPEG is an image format that utilizes lossy compression for storing and displaying digital images. Thanks to its high compression efficiency, it is the most popular and the most adopted image format today, with most display devices and software having built-in capabilities to read and display JPEG images.
Different levels of quality (typically in percentage) can be applied to compress JPEG images, which impacts the overall quality and the final size of the image. Lower quality conversion results in higher compression rates, smaller files and compression artifacts, while images saved with a higher quality setting will reduce the potential for compression artifacts at the cost of increased storage needs.
2.1. Advantages of JPEG format
- Already processed. JPEG images are fully processed in camera and all settings such as White Balance, Color Saturation, Tone Curve, Sharpening and Color Space are already “baked in”, or applied to the image. So you do not need to spend any time on post-processing the image, it is basically ready to use.
- Small footprint. JPEG images are much smaller in size than Raw images and therefore consume a lot less computer and other storage.
- Compatibility. Most modern devices and software support JPEG images, making the format extremely compatible and practical.
- No camera slowdown. Due to the smaller size, cameras can write JPEG files much faster compared to Raw files, which increases the number of pictures that can fit in the temporary camera buffer. This means that compared to Raw, you can potentially shoot at higher frames per second and for longer periods of time without slowing down your camera.
- Choice of compression. Digital cameras and post-processing software provide different compression levels for saving JPEG images, giving you the flexibility and choice over image quality vs size.
- Faster backups. Smaller size also translates to faster and more efficient backups.
2.2. Disadvantages of JPEG format
- Lossy compression. The “lossy” image compression algorithm means that you will lose some data from your photographs. This loss of detail, especially in highly compressed files, might result in posterization issues, as well as visible “artifacts” around subjects that might be visible to the naked eye.
- JPEG is 8-bit. The JPEG image format is limited to 8-bits, which puts a hard limitation of 16.8 million possible colors. This means that all those other colors that your camera is capable of recording are essentially discarded when the image is converted to JPEG format.
- Limited recovery options. JPEG images contain far less data, which significantly limits their dynamic range and recovery potential. This means that if you manage to overexpose or underexpose an image, it will be very difficult, if not impossible, to recover that data.
- Camera settings impact JPEG images. Since cameras fully process JPEG images, any camera setting that can damage the resulting image will be irreversible. For example, if you apply too much sharpening to your images, you will not be able to “unsharpen” them later.
3. Should You Use Raw or JPEG?
Let’s now move on to the most important question: should you be using Raw or JPEG for your photography?
For most photographers, shooting in Raw will far outweigh the advantages of using JPEG. Storage is cheap nowadays and so the file size will not be a huge problem, even for backups.
The additional time required to process Raw is a small sacrified for the amazing ability to recover information from Raw photos. Like many other photographers, I have been in situations where I managed to take a badly exposed image or mess up my white balance on a photograph that was too important to discard, such as a photograph from a wedding or a paid corporate shoot.
If I shot only in JPEG, I would not be able to do much to save the image. But thanks to Raw and its recovery potential, exposure and white balance errors are relatively easy to correct (as long as exposure errors are not too extreme). Raw can make a huge difference in such situations, especially when photographing rare, special moments that cannot be reproduced ever again.
3.1. Raw vs JPEG: Underexposed Image Example
How much difference is there when trying to recover data from a Raw image compared to JPEG? Let’s take a look at the first example:
My camera shutter speed was still from the previous location where it was much brighter and I didn’t notice the issue until after the fact. Gladly, I shot in Raw and I was able to almost fully recover the details that otherwise would have been lost. It was a first look and the best image of the groom’s face, which I did not want to lose. Take a look at below image on the left, which was recovered by 5 stops from the Raw file, while the image on the right was recovered the same way from a JPEG image:
As you can see, the difference between the two is very noticeable and significant. Recovering the image by 5 stops in Lightroom was a bit extreme in this case and I certainly ended up with more noise in the resulting image, but it was still perfectly usable. Now if I had shot the same image in JPEG and underexposed it by that much, there would have been no way to recover all that data, and I would not have been able to deliver this image to my clients.
It is hard to believe that such recovery is possible with a Raw image until you try it yourself. Go ahead and set your camera to Raw + JPEG, then underexpose an image by a few stops and see how much more recovery potential you have with the Raw image vs JPEG. You will be amazed by what you see and experience a similar result as above.
3.2. Raw vs JPEG: Recovering a Long Exposure Image
Now let’s take a look at another underexposed image, which I took at night using a very long exposure of 262 seconds. My camera battery was about to run out, so I stopped the exposure to swap the battery out and start another one:
Unfortunately, my next exposure did not work out at all, because it got much brighter at dawn and the stars disappeared from the sky. I thought I would not be able to recover the image, but after dialing +4.5 on the exposure slider in Lightroom, I was able to bring out all the details of the image, which was incredible! I then adjusted a few settings of the image such as Highlights, Shadows, Whites and Contrast, and here is what I was able to get as a result:
Now if you are wondering what I would have been able to do with the image if I had shot it in JPEG, here is the result:
Yikes! I wasn’t able to make both images look remotely similar, even after dialing +5 exposure and -100 highlights for the JPEG image. As you can see, the image is completely unusable!
3.3. Raw vs JPEG: Post-processing Raw vs JPEG Images
The next example involves an image that has an overexposed sky. Here is the original Raw image without any post-processing applied to it:
The image on the left below is the Raw image that had the sky recovered and other adjustments made to the image using Adobe Photoshop Lightroom. The image on the right went through exactly the same post-processing steps, except the original was a JPEG:
As you can see, the source JPEG image contained almost no data to be able to recover highlights in the sky, which is why it looks gray. Much of the cloud on the top right, as well as all the clouds on the left, were also overexposed and I could not recover any of those highlights. In addition to all this, if you look closely, you will also find subtle differences in other areas of the image where changes in white balance did not go in favor of the JPEG image.
3.4. Raw vs JPEG: Dynamic Range Comparison
If you are wondering how much more dynamic range one can pull out of a Raw file vs JPEG, take a look at my article that compares dynamic range between Nikon and Canon DSLRs. I gave two examples in that article that show what a 14-bit Raw file can do compared to a JPEG file when recovered in post-processing. Take a look at the below images (Left: Raw +5 Stop Recovery, Right: JPEG +5 Stop Recovery):
That’s a drastic difference in the ability to recover colors and details!
Other Image Formats: HEIF and TIFF
Some cameras can output other formats like HEIF and TIFF. What are these strange foramts? TIFF is sort of like a Raw file and losslessly preserves all the image information, but it’s a much larger file. There’s really no advantage to using TIFF over Raw unless you have a very specific workflow that only uses TIFF files. An example of that would be if you are using a specific application that cannot use Raw files.
HEIF is a format espoused by Apple and it’s somewhere between JPEG and Raw. It’s a bit better than a JPEG because it uses 10-bit encoding and has support for high-dynamic range images. Some cameras like the Canon 1DX III and the Sony A1 can capture HEIF files.
HEIF files are also smaller than Raw files, so they can be a nice middle ground, but for most photography purposes, Raw files with the full sensor data are still superior, especially since many editors cannot even handle HEIF files.
Here’s the botton line on the Raw vs JPEG debate: if you are serious about your photography, you should always shoot in Raw format. If you are just taking pictures of your family for fun, and you are OK with not taking advantage of the capabilities of your camera, then, by all means, shoot in JPEG.
Please let me know if you have any questions or feedback in the comments section below.