#!/bin/bash
#//ls *.jp2 | xjobs -j 4 ./thisfile.sh
echo $1
echo j2k_to_image -i $1 -o $1.bmp
echo convert -resize 50\% -quality 50 $1.bmp $1.jpg
echo rm $1.bmp
#235 pgs -j 4 1:12
#235 pgs -j 1 3:07 aka none
ls *.jpg | awk '1==1 {printf("convert -resize 10\% -quality 70 %s small/%s\n",$0,$0);}' | sh
ls *.jpg | awk '1==1{printf("\n",$0);}' >index.html
ls *.jpg | awk '1==1{printf("\n",$0,$0);}' >index.html