How to Convert RAW to JPG on Linux
Linux has some of the best free RAW tools available — darktable and RawTherapee were born there. Here's how to batch-convert RAW to JPG, from a one-line command to full editing.
Fastest: extract the embedded JPEGs
With ExifTool
sudo apt install libimage-exiftool-perl # Debian/Ubuntu
exiftool -b -JpgFromRaw -w %d%f.jpg -ext CR2 -r .
exiftool -b -PreviewImage -w %d%f.jpg -ext ARW -r .
Different brands store the big preview under different tags; JpgFromRaw and PreviewImage cover most. Details in extracting JPGs with ExifTool.
In the browser
BatchRAW does the same extraction in Firefox or Chromium, with resizing and quality settings and no install. Files stay on your machine.
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 →Develop the raw data from the command line
darktable-cli
mkdir -p jpg
for f in *.NEF; do darktable-cli "$f" "jpg/${f%.*}.jpg" --core --conf plugins/imageio/format/jpeg/quality=90; done
Add a .xmp sidecar argument to apply an edit you saved in darktable.
RawTherapee CLI
mkdir -p jpg && rawtherapee-cli -o jpg/ -j90 -c *.CR3
Add -p profile.pp3 to apply a processing profile to every file.
ImageMagick
mogrify -format jpg -quality 90 -path jpg/ *.ARW
Requires ImageMagick built with LibRaw or a RAW delegate (most distro packages include one). It's the slowest option here and uses a neutral rendering.
Graphical tools
- darktable — non-destructive editor with batch export. See darktable batch export.
- RawTherapee — queue-based batch processing. See RawTherapee batch convert.
- digiKam — photo manager with a Batch Queue Manager that converts RAW to JPEG.
- gThumb / Shotwell — viewers that can open and export RAW one at a time.
Missing RAW thumbnails in your file manager?
Recent GNOME and KDE releases show thumbnails for many RAW formats out of the box. If yours doesn't, install a RAW thumbnailer: on KDE that's kdegraphics-thumbnailers; on GNOME, search your distro's packages for "raw thumbnailer" (names vary by distro). Most work by showing the embedded preview.