DEV Community

Cover image for RAW to JPG: One Output, Many Camera Formats
Ethan Carter
Ethan Carter

Posted on

RAW to JPG: One Output, Many Camera Formats

A folder of camera photos can contain CR3 files from Canon, NEF files from Nikon, and ARW files from Sony. A website asking for JPG will not necessarily know what to do with any of them.

They are all described as RAW photos, but "RAW" covers a family of formats. Converting them to a familiar output involves more than changing the filename.

For developers handling media files, and for anyone preparing camera photos for a website, that distinction explains a lot: why one file converts while another fails, why two converters can produce different-looking results, and why a successful JPG download still deserves a closer look.

RAW photos come in many formats

Many camera RAW files do not end in .raw. Camera makers use different filename extensions, and some use more than one across their product history.

Here are examples relevant to RAW-to-JPG conversion:

Camera family or format RAW extensions
Canon .cr2, .cr3, .crw
Nikon .nef, .nrw
Sony .arw, .sr2
Fujifilm .raf
Panasonic / Lumix .rw2
Leica .rwl
Olympus / OM System .orf
Pentax .pef
Samsung .srw
Digital Negative, used across multiple camera makers and workflows .dng

That covers 14 extensions, but it is not an exhaustive catalogue of every RAW format. The brand associations are examples rather than exclusive rules: some cameras also offer DNG. Adobe maintains camera-by-camera RAW format tables for more detailed reference.

DNG is a publicly documented format, designed to make RAW data usable across different workflows. It still needs compatible processing software; a DNG filename alone does not establish that every decoder can handle the particular file.

Also, a generic .raw extension can describe other kinds of image data. It should not be treated as a universal identifier for camera photos.

RAW-to-JPG conversion includes an interpretation step

A camera RAW file carries image data and information about the capture. Software interprets that data to produce a viewable image.

Adobe's introduction to camera RAW describes this relationship and the control RAW processing provides over white balance, tone, color, and other adjustments.

That gives a useful way to think about conversion:

Camera RAW file
    -> decode and render an image
    -> encode the result as JPEG
Enter fullscreen mode Exit fullscreen mode

The rendering stage helps determine how the photo looks. The JPEG encoding stage determines how that rendered image is stored.

This is why renaming photo.nef to photo.jpg cannot perform the conversion. It changes the label without creating JPEG image data.

It also explains why a JPG quality slider is only part of the process. Increasing JPEG quality does not choose a different white balance or recover detail that was absent from the image being encoded.

An embedded preview offers another route

Camera RAW files can include an already-rendered preview. A converter may use that image when available instead of developing a fresh image from the underlying RAW data.

These routes can produce different results:

Route What to check
Render the RAW image data Whether the decoder handles the file, and whether the resulting color and detail suit the task
Use an embedded preview Whether the preview's dimensions, appearance, and detail are sufficient for the intended output

An embedded preview may be useful for a quick sharing copy. Its presence does not prove that the converter can fully develop that camera's RAW data.

Its resolution also needs checking. A high JPEG quality setting cannot turn a smaller preview into a full-resolution rendering of the original capture.

For a web thumbnail, a preview may be sufficient. For detailed editing or a large print, verify the output much more carefully and use a RAW editor when you need control over development settings.

Compatibility depends on the file behind the extension

Supporting CR2, NEF, or ARW involves more than recognizing the suffix.

Camera models and RAW variants can differ. Even a single manufacturer may offer several recording options. Sony, for example, documents different RAW compression modes, with availability depending on the camera.

A successful conversion of one ARW file therefore does not establish support for every Sony camera and recording mode. The same principle applies to other RAW families.

When testing a conversion workflow, record the camera model and capture settings alongside the extension. "Works with NEF" is less informative than knowing which Nikon files were actually checked.

A browser workflow for RAW to JPG

For photos that need compatible sharing copies, CompressFly's RAW to JPG converter accepts the 14 extensions listed above and attempts conversion locally in the browser. Compatibility can vary by camera model and file variant.

The workflow is short:

  1. Add RAW photos using Select images, Select folder, or drag and drop.
  2. Keep JPG as the output format and choose the image quality. The current default is 90%. The RAW Acceleration option uses the embedded preview when available for faster conversion.
  3. Start conversion, review the results, and download completed JPGs individually or together in a ZIP.

The source RAW files are not uploaded to a processing server. The website still needs to load its application resources, and conversion uses the device's computing resources and memory.

For a mixed folder, try a few files from each camera before processing the full batch. If an individual file cannot be decoded, retain it for a workflow that supports that camera and RAW variant.

Check the JPG against the job it needs to do

A successful conversion tells you that an output was produced. Before relying on it, check:

  • Dimensions: Is the image large enough for its destination?
  • Orientation: Do portrait and landscape photos display correctly?
  • Color and tone: Does the rendering look suitable, especially in highlights and shadows?
  • Detail: Are the important areas clear when viewed beyond thumbnail size?
  • File requirements: Does the downloaded JPG meet the destination's size and dimension limits?

JPEG uses lossy compression. Converting to JPG creates a rendered sharing copy; it does not preserve all the editing possibilities of the RAW source.

Keep the originals, whether they are CR2, CR3, NEF, ARW, DNG, RAF, or another RAW format. Use the JPG copies for the website, recipient, or application that needs them.

Top comments (0)