for n in quake*.tga
do
    convert $n \
        -crop 1152x736+0+0 \
        -depth 16 \
        -gamma 1.15 \
        -compress zip `basename -s .tga $n`.tiff
done

hugin_stitch_project -t 2 -o q2f-1 q2f-1.pto
convert q2f-1.tif \
    +matte \
    -unsharp 0x0.3 \
    -quality 90 -write q2f-1-big.jpeg \
    -resize x768 -unsharp 0x0.3 \
    -quality 90 -write q2f-1-middle.jpeg \
    -resize x384 -unsharp 0x0.3 \
    -resize x256 -unsharp 0x0.3 \
    -gamma 1.1 \
    -quality 90 q2f-1-small.jpeg
rm q2f-1.tif

hugin_stitch_project -t 2 -o q2f-1a q2f-1a.pto
convert q2f-1a.tif +matte -compress zip q2f-1a.tif
fulla -t 2 -s -g 0.09:0.04:-0.8:1.55 -o q2f-1a.tif q2f-1a.tif
convert q2f-1a.tif \
    -unsharp 0x0.3 \
    -resize x1536 -unsharp 0x0.3 \
    -quality 90 -write q2f-1a-big.jpeg \
    -resize x768 -unsharp 0x0.3 \
    -quality 90 -write q2f-1a-middle.jpeg \
    -resize x384 -unsharp 0x0.3 \
    -resize x256 -unsharp 0x0.3 \
    -gamma 1.1 \
    -quality 90 q2f-1a-small.jpeg
rm q2f-1a.tif

rm quake[0-9][0-9].tiff
