-#!/bin/bash
+#!/usr/bin/env bash
# Pass .NEF and .jpeg files as $@.
# This makes many variants of each .NEF file at different exposure levels
SMALLHEIGHT=700
+renice -n 19 $$
for f;do
if [[ "$f" == *.NEF ]];then
if [[ -s "sm/$f" ]];then
echo "Skipping sm/$f"
else
+ mkdir -p sm
convert "$f" -geometry "x$SMALLHEIGHT" "sm/$f"
fi
fi