ImagePDF.Tools
Productivity

How to Convert RAW DNG Camera Files to Lossless WebP and Compact PDF

N
NikolaLast updated on November 12, 2026 · 4 min read

Summary

DNG files have to be developed in a raw editor before they become WebP or PDF. How to export them, when lossless WebP is worth its size, and why a compact PDF needs JPEG inside.

A DNG is not a picture yet. It holds the raw readings from the camera sensor, and a raw editor has to develop them, applying white balance, exposure and color, before you get pixels you can save as WebP, JPEG or PDF. So the conversion is always two steps: develop and export from a raw editor, then encode or assemble the result.

For sharing, a lossy WebP or JPEG at quality 80 to 90 looks the same as the developed raw at a fraction of the size. Lossless WebP keeps the developed pixels exactly but is much larger. For a compact PDF, put JPEGs inside, because the PDF format has no way to store WebP.

A DNG raw file passing through a raw editor, then branching into a WebP image for screens and a JPEG-based PDF for proofs | ImagePDF.Tools | ImagePDF.Tools
Develop once, then choose the container: WebP for screens, JPEG inside a PDF for proofs and print.

What is inside a DNG, and why browsers cannot open it

DNG (Digital Negative) is Adobe's openly documented raw format, built on TIFF. Leica, Pentax and Ricoh cameras record it directly, and iPhone ProRAW and Samsung Expert RAW save DNG as well. Each pixel of the sensor records only one color, so the raw editor has to interpolate the other two (demosaicing) and then turn linear sensor data into a viewable image. That is why a DNG looks different in Lightroom, Apple Photos and darktable: each one develops it its own way.

Web browsers do not include a raw developer, which is why no browser-based converter, ours included, can read a DNG directly. Do the development step in one of the apps below, then use browser tools for the rest.

Step 1: develop and export the DNG

AppPlatformUseful export formats
Lightroom ClassicWindows, MacJPEG, TIFF, PNG; PDF through the Slideshow module
Photoshop with Camera RawWindows, MacWebP (lossy or lossless), JPEG, TIFF, PDF
darktableWindows, Mac, Linux (free)WebP (lossy or lossless), JPEG, TIFF, PNG
RawTherapeeWindows, Mac, Linux (free)JPEG, TIFF, PNG
Photos or PreviewMac, iPhoneJPEG, PNG, TIFF, HEIC
Free and paid raw developers, and what they can export directly.

On Windows, install Microsoft's free Raw Image Extension from the Microsoft Store so DNGs show thumbnails in File Explorer and open in the Photos app. For batch export, a full raw editor is still the better tool.

Whatever app you use, set these before exporting:

  • ●Color space: sRGB for anything going to screens, clients or online print services. Wider spaces such as Display P3 or Adobe RGB look dull in apps that ignore color profiles.
  • ●Size: resize to what the viewer needs. A 3000 pixel long edge is plenty for screen proofs; a 48 megapixel original is rarely needed outside print.
  • ●Bit depth: 8 bits per channel for WebP and JPEG. Neither format can hold 16 bits, so export 16-bit TIFF only if you plan further editing.

Step 2a: make the WebP

darktable and Photoshop can save WebP directly. Otherwise export a TIFF or PNG and encode it with Google's free cwebp tool:

bash
# Lossless: every developed pixel kept exactly
cwebp -lossless -z 9 -metadata icc photo.tif -o photo.webp

# Near-lossless: tiny pixel adjustments, much smaller
cwebp -near_lossless 60 -metadata icc photo.tif -o photo.webp

# Lossy at high quality: the usual choice for sharing
cwebp -q 88 -m 6 -metadata icc photo.tif -o photo.webp
⚠️

cwebp copies no metadata by default, which includes the color profile. Without -metadata icc, an image exported in Display P3 or Adobe RGB loses its profile and its colors shift. Exporting in sRGB avoids the problem entirely.

Be realistic about lossless. "Lossless" here means nothing is lost after development; the raw data's extra highlight range and white balance freedom are gone the moment you export, whatever the format. A lossless WebP of a full-size photo is often several times the size of a high-quality lossy one, with no visible difference. It makes sense for graphics and screenshots, or for an edited master you will re-encode later. For photos you send to people, quality 85 to 90 lossy is the sensible choice.

If you already have JPEGs or PNGs from your raw editor, Convert to WebP encodes them to lossy WebP with a quality slider, in your browser, without uploading your photos.

Step 2b: build a compact PDF

A PDF can store images as JPEG, JPEG 2000 or losslessly compressed pixels, but not as WebP. A tool that puts a WebP into a PDF has to convert it first, often to a lossless format, which can make the PDF bigger than the photos you started with. For a small contact sheet or client proof, export JPEGs and assemble those.

  1. 1.Export the selected photos from your raw editor as sRGB JPEGs, about 2500 to 3000 pixels on the long edge, quality around 80.
  2. 2.Open Image to PDF, add the JPEGs and drag them into order.
  3. 3.Choose a page size: A4 or Letter for a document to print, or Fit to make each page exactly the size of its photo.
  4. 4.Create the PDF and save it. JPEGs are placed into the PDF as they are, without being re-compressed, so the PDF is roughly the total size of the photos.

Twenty photos at that size usually make a PDF small enough to email. In Lightroom Classic you can also build the PDF in one go: select the photos, open the Slideshow module, pick a template and click Export PDF, where you can set JPEG quality and page size.

Keep the DNGs

Treat WebP, JPEG and PDF as delivery copies. The DNG is the only file that still holds the full sensor data, so you can rescue a blown sky or fix white balance years later. Archive the DNGs, and regenerate the small versions whenever you need them.

Frequently asked questions

Why does my exported photo look different from the DNG preview on my phone?
A DNG often carries a small embedded JPEG preview made by the camera or phone. Your raw editor ignores it and develops the sensor data with its own defaults, so contrast and color can differ. Adjust in the editor until it looks right, then export.
Is there a maximum size for WebP?
Yes, 16383 pixels on either side. Ordinary camera files fit, but a stitched panorama can exceed it. Resize it, or use JPEG, which allows much larger images.
Can I convert DNG to WebP on an iPhone?
The Photos app can export a ProRAW photo as JPEG or HEIC, and from there a browser converter can make a WebP. For control over the development, use a raw editor app such as Lightroom mobile.
Should I convert my CR3, NEF or ARW files to DNG first?
It is not needed for exporting WebP or PDF, since raw editors read those formats directly. Some photographers convert to DNG for archiving because the format is openly documented; keep the originals too if you do.

Sources & references

This article was researched and written by Nikola, drawing on the following primary sources and documentation:

Ready to try it?

All tools run entirely in your browser, no uploads, no account required.

Image to PDF