You can convert a batch of .arw
(Sony RAW) images to .jpg
on Ubuntu using ImageMagick
, dcraw
, or RawTherapee
. Here are a few methods:
dcraw
and imagemagick
(Recommended for CLI)sudo apt update
sudo apt install dcraw imagemagick
.arw
files in a directory to .jpg
:for file in *.arw; do
dcraw -c "$file" | convert - "${file%.arw}.jpg"
done
dcraw -c "$file"
: Converts the RAW file to a standard format.convert - "${file%.arw}.jpg"
: Converts it to JPG.rawtherapee-cli
(For better color processing)RawTherapee
:sudo apt install rawtherapee
mkdir output
.arw
files:rawtherapee-cli -o ./output/ -j95 -c *.arw
-o ./output/
→ Output directory.-j95
→ Set JPEG quality to 95%.-c
→ Process all files.darktable-cli
(For better control)darktable
:sudo apt install darktable
mkdir output
for file in *.arw; do
darktable-cli "$file" "output/${file%.arw}.jpg"
done
ufraw
(Older tool)ufraw
:sudo apt install ufraw
for file in *.arw; do
ufraw-batch --out-type=jpeg --output="${file%.arw}.jpg" "$file"
done
dcraw + ImageMagick
.RawTherapee
or Darktable
.ufraw
.