#!/bin/bash

rm -rf gamma log
mkdir gamma log

JxrDecApp -i HellbladeSenuaSacrifice.jxr -o HellbladeSenuaSacrifice.tif
convert HellbladeSenuaSacrifice.tif HellbladeSenuaSacrifice.jpg

for i in $( seq -w 1.0 0.1 3.0 )
do
  convert HellbladeSenuaSacrifice.tif -gamma ${i} gamma/gamma_${i}.jpg
done

for i in $( seq -w 001 1 009 ; seq -w 010 10 090 ; seq -w 100 100 900 )
do
  convert HellbladeSenuaSacrifice.tif -evaluate log ${i} log/log_${i}.jpg
done
