How I halved my camera RAW file sizes with no image quality degradation

Seizing the opportunity from efficient lossless compression using Adobe’s DNG Converter with special settings that are easy to miss

Shooting in RAW provides you with the best way to record the information captured by your camera sensor, and provides you with the most latitude for editing (for example, recovering details in shadows and highlights). However, camera RAW files tend to be large, with major implications for storage. In this article, I show that there is an opportunity to substantially reduce the space occupied by original camera RAW files while preserving the image data exactly. That is – to use the latest version of Adobe’s DNG Converter with specific (non-default) settings.

I investigated this opportunity using my own photographic archive. I compared the original and optimised file sizes for 23,078 photographs, with the optimised DNGs occupying about half the original space. To put that into familiar terms, 10 TB of camera RAW files would become approximately 5.3 TB, if they had the same mix of cameras and recording settings as this collection. This suggests substantial benefits for many photographers.

Even if you have previously used Adobe’s DNG Converter, there is a second opportunity too. Most of my archive had already been converted to DNG using Adobe’s standard settings. Recompressing those existing DNGs with an optional ‘hidden’ lossless JPEG XL setting (discussed below) recovered a further 1.18 TB across my files. The photographs did not need to be re-edited.

This article explains the two experiments, the results and the setting that is surprisingly easy to miss.

What 10 TB of camera files could become

Storage required after lossless optimisation of 10 TB of original camera files, by camera.
Figure 1. My camera-original results expressed as storage needed from a 10 TB starting point. The detailed table gives the sample sizes.

These are measured storage ratios from my photographs, scaled to a common starting point of 10 TB. The largest reduction in this comparison came from my Sony A7CR files. If my hard disk only contained Sony A7CR RAW files, 10 TB would become about 3.7 TB. At the other end of the scale, a hard drive containing 10 TB of Canon 100D RAW files would allow a 2 TB reduction – still a very useful saving. Across the collection, this is equivalent to reducing 10 TB of RAW files to 5.3 TB. All this without introducing lossy compression into the conversion, with absolutely no image quality degradation whatsoever.

My recommendation: Adobe DNG Converter, but with the right option

I recommend using the latest Adobe DNG Converter and explicitly selecting lossless JPEG XL compression. This is the approach tested here.

But beware. Simply running the converter with its default settings is not enough. I made that mistake myself. In my tests with Adobe DNG Converter 18.6 on macOS, the standard lossless conversion still used the older compression method for the RAW image, even when a recent compatibility setting was selected. A JPEG XL preview inside the file made it particularly easy to think the main image had also been optimised.

Adobe’s own command-line specification distinguishes the default lossless option from -losslessJXL, which is what you need to select. The practical instructions below use that option.

The important message is that a DNG can be lossless without using the more efficient lossless compression available today. Existing DNG users may therefore have as much reason to investigate their files as photographers still storing camera original RAW files.

What “lossless” means, and why newer compression can make the same image smaller

Lossless compression preserves the numerical image values exactly when they are decoded. It does not merely aim to look the same. There is no quality slider trading image information for a smaller file, and no reduction in resolution to obtain these results. So, you may be able to halve the space required to store your RAW files without losing image quality.

There is an important distinction between preserving image data and preserving the original file byte for byte. DNG is a container for RAW data and the information needed to interpret it. The compression method inside that container can evolve. Importantly, Adobe added JPEG XL lossless compression to DNG 1.7; the DNG 1.7.1 specification documents its use for both mosaic and linear RAW images, as well as previews.

JPEG XL stores the same image information more efficiently than the older lossless compression used in many DNGs. It makes better use of patterns in the data, allowing the original image values to be recovered exactly. For the technical explanation, see codec developer Jon Sneyers’ JPEG XL’s Modular Mode Explained.

Experiment 1: original camera RAWs to optimised DNGs

This comparison used 23,078 photographs from 13 camera models, with ARW, CR2 and RAF originals. The original file sizes had been recorded during an earlier duplicate scan, before those originals were removed. Those records were matched to the corresponding DNGs and their subsequently optimised versions.

This was therefore a comparison using recorded original sizes, rather than a new batch conversion of 23,078 still-present originals. The later pixel checks compared the existing DNGs with their recompressed versions. They do not constitute a fresh pixel comparison against the deleted camera originals.

My files had gone through two steps: camera RAW to a conventional lossless DNG (using lossless JPEG compression), then that DNG to a DNG using the latest lossless JPEG XL compression. A photographer starting with camera RAW originals today can, obviously, apply the newer compression directly; there is no need to make an intermediate older DNG first.

CameraFilesOriginal GBOptimised GB10 TB becomes
Sony A7CR26233.4812.473.7 TB
Fujifilm X-T278739.6315.964.0 TB
Sony A7R III1,994153.6064.224.2 TB
Sony A7R IV1,710210.5189.644.3 TB
Sony A7 III3,548169.0972.384.3 TB
Fujifilm X-H132116.156.924.3 TB
Fujifilm X100F90.450.245.4 TB
Sony A7R V6,932564.98322.285.7 TB
Sony A13,818208.84133.186.4 TB
Canon 5D Mark IV1,31041.2429.157.1 TB
Canon 5D Mark III99326.8420.627.7 TB
Canon 5D Mark II1,05327.3621.067.7 TB
Canon 100D3417.816.228.0 TB
All measured files23,0781,500.00794.355.3 TB

In total, 1,500 GB of camera RAW originals were reduced to 794 GB, saving about 706 GB. The familiar 10 TB illustration is calculated from the total bytes, not by averaging the camera percentages. These results describe my archive, with its subjects, exposure settings and camera modes; they are not a controlled ranking of camera brands.

Uncompressed RAW originals have more scope for reduction because compression is doing work that the camera did not do. Files already compressed in-camera can still benefit, but by a different amount. Scene detail and noise also affect what can be compressed.

Experiment 2: improving files already converted to DNG

The second experiment asks a different question: how much more space can I recover if I have already converted my camera files to lossless DNG? I recompressed 173,061 files spanning 2006–2025, covering two decades of photography. Overall, the total fell from 6.80 TB to 5.62 TB, recovering 1.18 TB.

Optimised storage and space saved for each year of accepted DNG reconversions, 2006 to 2025.
Figure 2. The accepted library conversions by year. “Nothing discarded” refers to the decoded RAW image values, not an assertion that every preview and metadata byte stayed unchanged.
YearFilesBefore GBAfter GBSaved GB
20062,03417.5014.453.05
20072,88332.8627.355.51
20083,80046.0538.827.23
20095,521124.48110.4614.02
20105,632123.57109.6613.92
20112,16646.8442.034.82
201211,758260.32230.8529.47
20135,825134.57119.2515.32
20145,354120.75107.9712.78
20154,25294.9684.9010.06
20164,749109.9997.2512.74
201714,756410.51339.3271.19
20187,825211.87184.8227.05
20194,258178.39159.6918.70
20201,52480.1171.298.82
202126,1711,236.69968.97267.72
202217,810945.06775.11169.95
202317,0061,005.02766.42238.59
202422,7441,323.841,103.09220.75
20256,993297.93269.1728.75
Total173,0616,801.325,620.881,180.44

Most of the space was recovered from later years because those folders contained many more bytes to begin with. A smaller percentage applied to a large folder can save more storage than a dramatic percentage applied to a few photographs.

How the additional saving varied by camera

The camera breakdown below covers 17,309 accepted files in the sampled camera results. To make the implications easier to understand, the last column again scales each result to 10 TB, this time starting with existing default-settings DNGs.

CameraSample filesBefore GBAfter GB10 TB becomes
Sony A12,793132.1195.827.3 TB
Fujifilm X-T233110.197.427.3 TB
Fujifilm X100F2708.716.697.7 TB
Fujifilm X-H1320.900.707.7 TB
Sony A7R V3,049178.45138.407.8 TB
Fujifilm X100V90.320.257.8 TB
Canon 350D1320.930.778.2 TB
Canon 5D6967.806.498.3 TB
Canon 5D Mark IV94424.9221.988.8 TB
Sony A7 III82919.7417.518.9 TB
Canon 50D490.830.748.9 TB
Canon 5D Mark III2,65359.8553.198.9 TB
Canon 5D Mark II1,91442.3937.698.9 TB
Sony A7R III77430.7927.558.9 TB
Canon 7D10.020.028.9 TB
Canon 450D40.060.059.0 TB
Sony A7R IV1,940113.75102.739.0 TB
Canon 100D901.741.589.1 TB
Sony A7CR79946.5942.619.1 TB

The very small Canon 7D, Canon 450D and Fujifilm X100V samples should be read as examples, not dependable estimates for those cameras. The apparently different savings for the same camera across the tables are not contradictions: the starting formats and the photographs in each population differ.

How I checked that the image data was preserved

All 173,064 checked files preserved identical decoded image values. I compared the image data before and after conversion numerically, rather than relying on the photographs simply looking the same.

The checks also examined the compression used and selected metadata. They allowed 173,061 files to replace their previous versions; three were retained unchanged because of metadata differences or because the requested compression had not been used.

What about iPhone and Leica DNGs?

Our results showed that “already a DNG” does not necessarily mean “already efficiently compressed”. The older lossless-compressed ProRAW examples from my iPhone 12, 14 and 16 Pro Max became approximately half their previous whole-file size, with identical decoded pixels.

Pilot groupFilesBefore MBAfter MB10 TB becomes
iPhone 12 Pro Max8259.5126.64.9 TB
iPhone 14 Pro Max8576.0269.14.7 TB
iPhone 16 Pro Max8587.5293.15.0 TB
Leica Q38605.3455.47.5 TB
iPhone X (app DNG)333.028.18.5 TB

Apple ProRAW is also already computationally processed image data, rather than an untouched Bayer sensor mosaic. Lossless recompression preserves the data present in it; it does not reverse that earlier processing. Files already using lossless JPEG XL may offer little additional saving. These native-DNG cases were investigated separately and are not included in the 173,061-file library result.

How to try it on your own files

Download Adobe DNG Converter from Adobe. My experiment used version 18.6 on macOS. Choose examples from the cameras and recording modes you actually use, including edited files and any unusual DNGs. Create a separate output folder so that you can compare the results with their sources.

Remember to request lossless JPEG XL explicitly

On a Mac, open Terminal (in Applications → Utilities). The command below runs Adobe DNG Converter with lossless JPEG XL compression explicitly enabled. Replace the example input path and output folder with your own, create the output folder first, then paste the command into Terminal and press Return. This example converts one file.

"/Applications/Adobe DNG Converter.app/Contents/MacOS/Adobe DNG Converter" -losslessJXL -d "/Volumes/Photos/Optimised" "/Volumes/Photos/Originals/DSC1234.ARW"

The important option is -losslessJXL. The -d option specifies the destination. The output will be a DNG. On Windows, Adobe documents the same options; the executable path must match your installation. The command shown here is the macOS route used for this experiment.

Compatibility is the main practical trade-off

An application supporting DNG in general does not necessarily support JPEG XL inside a DNG. Check the actual files in the versions you use.

The evidence below was reviewed in September 2026. It is deliberately specific about what the sources establish, rather than a blanket list of applications that supposedly work.

Software or libraryWhat the evidence establishes
Adobe Camera Raw / LightroomThe tools used for this Adobe-based workflow. Use current versions and test your files; older DNG support alone is insufficient.
Iridient X-Transformer 4.0The November 2025 release notes explicitly add lossless and lossy JPEG XL DNG output. This is evidence of wider adoption, not a replication of my experiment.
LibRaw 0.22Its January 2026 release notes add DNG 1.7/JPEG XL via Adobe DNG SDK integration. An application must include the relevant build support.
darktable 5.6The June 2026 release notes list JPEG XL DNG under missing compression-mode support.
RawTherapeeThe DNG 1.7 support request remains open. Do not infer support from the .dng extension.
DxO PhotoLab / PureRAWThe published PhotoLab input requirements and PureRAW input requirements restrict Adobe-converted RAW DNGs to files without compression. Check your current version rather than assuming acceptance.

My results support this approach for my Adobe-based workflow. They do not establish compatibility for every editor, operating-system thumbnail generator or NAS photo application. That is the check to make before committing your own archive.

Where this fits in my photographic workflow

Camera RAW files take up a lot of storage space. Efficient lossless RAW storage gives me a sound foundation for both my existing photography and future HDR work. It substantially reduces the storage burden without using an image-quality compromise (for example, lossy compression) to achieve it.

For my archive, the evidence supports a clear recommendation: investigate lossless JPEG XL DNG before deciding that storage savings require discarding RAW image information through the use of lossy compression. The camera RAW originals delivered substantial file size savings, and even my existing lossless DNG collection contained another 1.18 TB that could be recovered. The key was choosing the newer compression explicitly and checking the results.

Scope and sources

The measurements come from my September 2026 conversion records, matched-original size records, verification logs, pilot results and camera summaries. Totals above were recalculated from byte counts where available. Tables show rounded sizes, so displayed rows may not sum exactly to displayed totals. Whole-file sizes include previews unless labelled RAW payload. The 10 TB figures are illustrations of the measured ratios, not additional experiments.

The main original-camera comparison covers Sony ARW, Canon CR2 and Fujifilm RAF. It does not establish savings for Canon CR3, Nikon NEF, Olympus/OM System, Panasonic or Pentax originals. The metadata checks were filtered, and the pixel verification relates to DNG recompression rather than a fresh comparison with deleted camera originals.

Technical explanations and application statements are linked to Adobe’s specification and command-line documentation, the codec developer’s explanation and the relevant software developers’ documentation. My separate lossy DNG investigation compares the additional storage savings and explains why I use lossy JPEG XL after editing while preserving RAW data losslessly. None of those additional savings have been folded into the lossless results presented here.

Technical detail: how the image data was checked

The verification decoded the main RAW image from each source and output DNG, restored sample ordering where interleaving was used, checked that the array dimensions matched, and compared the numerical values for exact equality. It also inspected the compression method of the main RAW image, independently of any embedded preview.

Metadata was checked separately using a filtered ExifTool comparison. Conversion history, storage layout and several image-directory groups were excluded, so this check was not intended to establish that every metadata field remained unchanged. Two files were held back for metadata issues and one because its output did not use JPEG XL. All three passed the image-value comparison.

Last updated: September 2026