KAHIBARO
Discord Login Register

5.1. Digital Image Formats

RAW

RAW is the most flexible digital image format your camera can create. Instead of giving you a finished picture, it records the most complete, unprocessed data that the sensor captured, along with information about how the scene was shot.

When you shoot RAW, the camera does not bake in choices like contrast, sharpness, or white balance. It simply records the scene as numbers, then saves your camera settings as suggestions that editing software can apply or ignore. This is why RAW files look flat or dull at first, but can be edited very aggressively without falling apart.

RAW is not a single universal format. Each manufacturer often has its own type, such as .CR3, .NEF, .ARW, .ORF, and others. Some systems also support a more open version called DNG. You cannot usually view RAW files perfectly without compatible software, so you will often process them in a program like Lightroom or similar and then export a finished JPEG or another format.

RAW files are larger than JPEGs because they keep much more information. This gives you more control over exposure, white balance, and color during editing. For example, if the sky is a bit overexposed or the shadows are very dark, a RAW file often lets you recover detail that would be unrecoverable from a JPEG.

Because RAW files are unprocessed, they are always non-destructive by nature. When you edit a RAW photo, the edits are instructions stored alongside the original sensor data, not changes applied directly to the file itself. This is ideal if you want the highest quality and the freedom to re-edit later with different choices.

JPEG

JPEG is the standard image format for finished photos. When you choose JPEG in your camera, you are telling it to process the image for you and save a ready-to-use file.

The camera takes the RAW sensor data, then applies several steps automatically. It sets white balance, increases contrast, sharpens the image, adjusts colors, reduces noise, and applies its own color style or picture profile. After this processing, it compresses the result and discards some data to make a much smaller file.

The advantage of JPEG is convenience. JPEGs are small, fast to transfer, and can be opened on almost any device without special software. If you get the exposure and white balance correct in camera, a good JPEG can look excellent straight away, with no editing needed.

The downside is that you have far less room to fix mistakes later. Since the camera has already thrown away information, heavy editing can lead to banding, color shifts, and visible artifacts. Changes to white balance and exposure are possible, but they degrade the file more quickly than with RAW.

JPEGs are also limited by their color and tonal precision, which is usually 8 bits per channel. This is often enough for sharing and small prints, but it gives you less smoothness in gradients compared to higher bit depth formats.

HEIF

HEIF stands for High Efficiency Image File format. It is a newer image format designed to store photos more efficiently than JPEG while maintaining equal or better visual quality.

Many smartphones and some cameras now support HEIF. A HEIF photo can be about half the file size of a comparable JPEG at similar quality. This saves storage space and makes transferring photos faster, which is especially helpful on mobile devices.

HEIF is also more modern in its design. It can support higher bit depths, such as 10 bits per channel, and can store additional information like depth maps, multiple frames, or Live Photo style sequences in one file. This makes it suitable for features like portrait mode, where the phone needs to know which part of the scene is in front and which is behind.

The main limitation of HEIF today is compatibility. Although support is growing, some older computers, programs, and websites still expect JPEG. Many smartphones can automatically convert HEIF images to JPEG when sharing, but if you plan to edit your images on a variety of devices, you should check whether your workflow handles HEIF correctly.

In practice, HEIF can be thought of as a more efficient alternative to JPEG. It is not a replacement for RAW, because it still stores a processed, compressed image rather than full sensor data.

RAW vs JPEG

Choosing between RAW and JPEG means choosing between flexibility and convenience. Both formats can produce excellent results, but they are suited to different situations and working styles.

The core differences can be summarized as follows:

AspectRAWJPEG
ProcessingMinimal, unprocessed sensor dataFully processed in-camera
File sizeLargeSmall
Editing flexibilityVery highLimited
White balance changesEasy and high qualityPossible but lower quality
Dynamic rangeHigher, more recoverable detailLower, detail can be clipped
CompatibilityNeeds compatible softwareUniversally viewable
Speed and workflowSlower, needs editingFast, ready to share
Bit depthOften 12 or 14 bits per channelTypically 8 bits per channel

RAW is usually the best choice when image quality matters most, when lighting is challenging, or when you plan to edit your photos seriously. It is especially useful for high contrast scenes, night photography, landscapes, and any work that might be printed large.

JPEG is useful when you need speed and simplicity, such as casual snapshots, sharing directly from the camera, fast-turnaround events, or when your storage space is limited. If you rely on getting everything correct in camera, JPEG can be very efficient.

Many cameras also offer a RAW+JPEG mode. In this case, the camera saves both formats every time you press the shutter. You get a quick, ready-to-use JPEG and a RAW file for more advanced editing if you need it. This uses more storage, but can be a good way to transition into RAW photography.

Remember: RAW protects your editing flexibility, while JPEG prioritizes small files and instant usability. Once the camera has compressed a JPEG, you cannot recover the original RAW sensor data from it.

Bit Depth

Bit depth describes how precisely colors and tones can be recorded in a digital image. It is a measure of how many different brightness levels each color channel can represent.

For each pixel, a typical photo records three color channels: red, green, and blue. The bit depth is usually given per channel. The number of possible values per channel is:

$$\text{Levels per channel} = 2^{\text{bit depth}}$$

So, for common bit depths:

Bit depth per channelLevels per channelTypical use
8-bit256JPEGs, web images
10-bit1024Some HEIF, modern displays
12-bit4096Many camera RAW formats
14-bit16384Higher-end RAW formats

An 8-bit JPEG can store 256 brightness levels for each color channel. A 12-bit RAW file can store 4096 levels per channel. This extra precision matters most in smooth gradients, very subtle tones, and scenes with wide dynamic range.

Higher bit depth does not instantly make a picture look better to the eye. Instead, it gives you more headroom when editing. For example, lifting shadows or darkening highlights is more likely to cause banding in an 8-bit image, because there are fewer intermediate steps between one tone and the next. A 12-bit or 14-bit RAW file lets you make stronger adjustments before problems appear.

Key idea: Higher bit depth = more tonal steps = smoother gradients and safer editing. This is a major reason RAW files, with 12 or 14 bits per channel, are more robust for post-processing than 8-bit JPEGs.

Image Compression

Image compression reduces file size by storing the same visual information in a more efficient way. There are two main types of compression you will encounter: lossless and lossy.

Lossless compression keeps all original image data. When you decompress the file, you get back exactly the same pixels. Some RAW formats use lossless compression to save space without sacrificing quality. Other formats like PNG also rely on lossless methods.

Lossy compression discards some data that the algorithm considers less important for human vision. JPEG and many HEIF implementations use lossy compression. The goal is to reduce file size while still looking good to the eye. However, if you compress too much, visible artifacts start to appear, such as blocky areas, smudged detail, halos around edges, or strange patterns in fine textures.

In practical terms, when you save or export a JPEG, you often choose a quality level. Higher quality means less compression and a larger file. Lower quality means more compression and a smaller file, but more risk of artifacts. It is usually better to keep quality fairly high, especially for photos with fine details, gradients, or text.

Compression can be applied only a limited number of times without damage if it is lossy. Each time you re-save a JPEG at a lossy setting, the compression is applied again, and the file can slowly degrade. This is one reason photographers try to keep an original RAW or high-quality master file, then export compressed versions only when needed for sharing.

Rule of thumb: Use strong compression only on copies, never on your only master file. For important work, keep a high-quality original (RAW or high-quality export) and avoid repeated JPEG re-saving.

Choosing the Right Format

The best image format depends on how you shoot, how you edit, and what you plan to do with your photos.

If you are learning exposure and editing, or you care about the highest quality results for printing or serious projects, shooting RAW is usually the best choice. It gives you maximum flexibility to recover highlights and shadows, refine white balance, and adjust color without quickly degrading the image. RAW is especially valuable in difficult light, high contrast scenes, or when you expect to revisit and re-edit photos in the future.

If you mostly share photos on social media, want files that look good straight out of the camera, and prefer not to spend much time editing, JPEG is very practical. Modern cameras and phones can produce excellent JPEGs. For casual shooting, travel snapshots, and everyday memories, JPEG can be more than enough.

If your device supports HEIF and you stay within an ecosystem that handles it well, HEIF can be a good replacement for JPEG. You get smaller files at similar quality, and in some cases higher bit depth. This is particularly helpful on smartphones that shoot a lot of images and videos and need to save storage space.

A mixed approach is also common. Some photographers use RAW+JPEG so that they have both an immediate JPEG and a RAW file they can edit more deeply if needed. Others shoot RAW for important sessions and JPEG for quick, informal outings.

When choosing, consider these questions. How much do you plan to edit your photos? How important is maximum image quality and recoverability? How constrained are you by storage space? Which formats are supported by your editing software and devices?

As you gain experience, you will likely develop your own habits. For now, it is useful to remember that the format you choose is part of your workflow. RAW keeps your options open. JPEG and HEIF favor speed and simplicity. Matching the format to your goals will make the rest of your photography process smoother.

Views: 7

Comments

Please login to add a comment.

Don't have an account? Register now!