#!/bin/bash
######################################################################
#Copyright (C) 2022 Kris Occhipinti
#https://filmsbykris.com
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#You should have received a copy of the GNU General Public License
#along with this program. If not, see .
######################################################################
mkdir -p output
mkdir -p graphics
for i in *.jpg;
do
convert "$i" -rotate 90 -resize "30" -gravity center -crop 30x30+0+0 +repage output/${i%%.jpg}.png
done
echo "stfb0.png
stfb1.png
stfb2.png
stfb3.png
stfdead0.png
stfevl0.png
stfevl1.png
stfevl2.png
stfevl3.png
stfevl4.png
stfgod0.png
stfkill0.png
stfkill1.png
stfkill2.png
stfkill3.png
stfkill4.png
stfouch0.png
stfouch1.png
stfouch2.png
stfouch3.png
stfouch4.png
stfst00.png
stfst01.png
stfst02.png
stfst10.png
stfst11.png
stfst12.png
stfst20.png
stfst21.png
stfst22.png
stfst30.png
stfst31.png
stfst32.png
stfst40.png
stfst41.png
stfst42.png
stftl00.png
stftl10.png
stftl20.png
stftl30.png
stftl40.png
stftr00.png
stftr10.png
stftr20.png
stftr30.png
stftr40.png"|while read f
do
img="$(ls output/*.png|shuf|head -n1)"
cp -v "$img" "graphics/$f"
done