Skip to content

Commit

Permalink
bin: Add arwtojpg
Browse files Browse the repository at this point in the history
  • Loading branch information
cdown committed Sep 18, 2023
1 parent e5a2986 commit 2ec66cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bin/arwtojpg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash -ex

in_dir=${1?input dir missing}
out_dir=${2?output dir missing}

for raw_file in "$in_dir"/*.ARW; do
jpg_file=${raw_file##*/}
jpg_file=$out_dir/${jpg_file%.*}.jpg
exiftool -b -JpgFromRaw "$raw_file" > "$jpg_file"
exiftool -overwrite_original -TagsFromFile "$raw_file" \
-ISO -ExposureTime -Make -Model -DateTimeOriginal -FocalLength -LensModel -FNumber -Orientation "$jpg_file"
done

0 comments on commit 2ec66cf

Please sign in to comment.