#!/bin/sh
# Procress a selection of raw files
# which 'identify' does NOT regard as tiff
# and which therefore ImageMagick will use libraw to read
# convert to png to test how long this takes.
#
# The files are various canon, fuji, miolta, panasonic, sigma example photos
# which I found in online camera reviews, also one of my own olympus pics.

cd /tmp

rm -rf raw ; mkdir raw


test -d libraw || echo "copying"
test -d libraw || mkdir -p libraw
# check that the last file of the set is there
test -f libraw/sigma* || cp -a ~/repeat-tests/libraw/* libraw

time for F in libraw/*
 do
   FN=$(basename $F .jpg) ; echo $FN
   convert $F -resize 1408x1162 -unsharp 20x13 raw/$FN.png
 done
