BatchRAW
BatchRAW / Guides

How to Batch Export RAW to JPG in darktable

Published

darktable is a free, open-source RAW editor for Windows, Mac and Linux, and it batch exports well once you know where things are. Here's the workflow from import to a folder of JPGs.

1. Import the folder

  1. Open darktable. You start in the lighttable view.
  2. In the left panel's import module, click add to library…, browse to your folder, and import all images.

"Add to library" leaves files where they are; it doesn't copy them.

2. (Optional) Edit one, apply to all

  1. Double-click an image to open the darkroom and edit it.
  2. Return to the lighttable (press L). With that image selected, press Ctrl+C to copy its history stack.
  3. Select the other images (Ctrl+A for all) and press Ctrl+V to paste. Use Ctrl+Shift+C / Ctrl+Shift+V to pick which modules to copy — you usually don't want to copy crop, for instance.

For a look you'll reuse, save it as a style in the history stack module and apply it at export time.

3. Export

  1. Select all the images to export in the lighttable.
  2. Open the export module in the right panel.
  3. Storage options: file on disk. Set the target, e.g. $(FILE_FOLDER)/jpg/$(FILE_NAME), to create a jpg subfolder next to the originals.
  4. Format options: JPEG, quality 90.
  5. Global options: set size (e.g. 2560 × 2560 to cap the long edge, or 0 × 0 for full size), profile sRGB, and optionally a style.
  6. Click export (or press Ctrl+E).

Command line: darktable-cli

for f in *.CR3; do
  darktable-cli "$f" "jpg/${f%.*}.jpg" --width 2560 --height 2560 --hq true
done

Pass an .xmp file as the second argument to apply a saved edit to every image.

Why the defaults look flat

darktable's scene-referred defaults (filmic or sigmoid) aim for a neutral starting point, not the punchy look of the camera's JPEG. That's normal; see why RAW looks different from the camera.

When darktable is overkill

If you don't plan to edit — you just want JPGs that look like the camera's preview — extracting the embedded JPEG is far quicker and needs no import or library.

Convert RAW files to JPG in your browser. BatchRAW is free, needs no install or account, and your files never leave your device. Drop a whole folder and get a ZIP of JPGs back.

Open BatchRAW →