summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/Map.docxbin0 -> 44689 bytes
-rw-r--r--tools/render_cards.sh194
-rw-r--r--tools/runslice.sh6
-rw-r--r--tools/slice_back.sh130
-rw-r--r--tools/slice_front.sh130
5 files changed, 460 insertions, 0 deletions
diff --git a/tools/Map.docx b/tools/Map.docx
new file mode 100644
index 0000000..e23d852
--- /dev/null
+++ b/tools/Map.docx
Binary files differ
diff --git a/tools/render_cards.sh b/tools/render_cards.sh
new file mode 100644
index 0000000..4e3da36
--- /dev/null
+++ b/tools/render_cards.sh
@@ -0,0 +1,194 @@
+#!/bin/bash
+#
+# Script to render original HIRES assets to PNG and convert to proper size and resolution.
+
+mkdir -p HIRES/tmp800 cards100 cards200 cards75 cards150
+
+function do_powercard {
+ echo PROCESSING $2
+ OUT=HIRES/tmp800/$2
+ if [ ! -f $OUT ]
+ then
+ gs -sDEVICE=png16m -r800 -o "$OUT" "$1"
+ fi
+ convert -fill '#fffde9' -draw 'rectangle 1550,0 2000,300' -colorspace RGB -resize 12.5% -colorspace sRGB HIRES/tmp800/$2 cards100/$2
+ convert -fill '#fffde9' -draw 'rectangle 1550,0 2000,300' -colorspace RGB -resize 25% -colorspace sRGB HIRES/tmp800/$2 cards200/$2
+ convert -fill '#fffde9' -draw 'rectangle 1550,0 2000,300' -colorspace RGB -resize 188x263 -colorspace sRGB HIRES/tmp800/$2 cards75/$2
+ convert -fill '#fffde9' -draw 'rectangle 1550,0 2000,300' -colorspace RGB -resize 376x526 -colorspace sRGB HIRES/tmp800/$2 cards150/$2
+}
+
+function do_card {
+ echo PROCESSING $2
+ OUT=HIRES/tmp800/$2
+ if [ ! -f $OUT ]
+ then
+ gs -sDEVICE=png16m -r800 -o "$OUT" "$1"
+ fi
+ convert -colorspace RGB -resize 12.5% -colorspace sRGB HIRES/tmp800/$2 cards100/$2
+ convert -colorspace RGB -resize 25% -colorspace sRGB HIRES/tmp800/$2 cards200/$2
+ # convert -colorspace RGB -resize 188x263 -colorspace sRGB HIRES/tmp800/$2 cards75/$2
+ # convert -colorspace RGB -resize 376x526 -colorspace sRGB HIRES/tmp800/$2 cards150/$2
+}
+
+function xpowercard {
+ IX=$2
+ do_powercard "$1" power_$IX.png
+ IX=$(expr $IX + $2)
+}
+
+function powercard {
+ do_powercard "$1" power_$IX.png
+ IX=$(expr $IX + 1)
+}
+
+function eventcard {
+ do_card "$1" event_$IX.png
+ IX=$(expr $IX + 1)
+}
+
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-01.ai" 1_6
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-07.ai" 7_8
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-09.ai" 9_10
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-11.ai" 11_14
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-14.ai" 15_18
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-20.ai" 19_20
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-21.ai" 21_22
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-23.ai" 23_26
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-27.ai" 27_30
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-31.ai" 31_33
+xpowercard "HIRES/1989 PowerCards - FINAL/1989power-34.ai" 34_36
+IX=37
+powercard "HIRES/1989 PowerCards - FINAL/1989power-37.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-38.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-39.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-40.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-41.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-42.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-43.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-44.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-45.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-46.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-47.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-48.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-49.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-50.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-51.ai"
+powercard "HIRES/1989 PowerCards - FINAL/1989power-52.ai"
+IX=back
+do_card "HIRES/1989 PowerCards - FINAL/1989power-BACK 1-52.ai" power_back.png
+
+IX=1
+eventcard "HIRES/1989 Event Cards FINAL/1989event-01.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-02.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-03.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-04.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-05.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-06.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-07.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-08.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-09.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-10.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-11.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-12.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-13.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-14.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-15.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-16.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-17.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-18.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-19.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-20.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-21.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-22.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-23.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-24.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-25.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-26.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-27.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-28.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-29.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-30.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-31.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-32.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-33.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-34.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-35.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-36.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-37.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-38.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-39.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-40.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-41.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-42.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-43.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-44.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-45.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-46.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-47.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-48.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-49.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-50.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-51.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-52.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-53.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-54.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-55.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-56.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-57.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-58.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-59.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-60.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-61.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-62.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-63.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-64.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-65.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-66.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-67.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-68.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-69.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-70.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-71.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-72.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-73.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-74.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-75.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-76.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-77.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-78.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-79.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-80.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-81.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-82.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-83.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-84.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-85.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-86.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-87.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-88.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-89.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-90.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-91.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-92.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-93.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-94.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-95.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-96.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-97.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-98.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-99.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-100.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-101.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-102.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-103.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-104.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-105.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-106.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-107.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-108.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-109.ai"
+eventcard "HIRES/1989 Event Cards FINAL/1989event-110.ai"
+IX=back
+eventcard "HIRES/1989 Event Cards FINAL/1989 Eventback 1-110.ai"
+
+wait $(jobs -p)
diff --git a/tools/runslice.sh b/tools/runslice.sh
new file mode 100644
index 0000000..a86466f
--- /dev/null
+++ b/tools/runslice.sh
@@ -0,0 +1,6 @@
+mkdir -p tmp/counter800
+rm -f HIRES/counter800/*
+IN=HIRES/1989-1B-NF.ppm OUT=HIRES/counter800/sheet1_b bash tools/slice_back.sh
+IN=HIRES/1989-1F-NF.ppm OUT=HIRES/counter800/sheet1_a bash tools/slice_front.sh
+IN=HIRES/1989-2B-NF.ppm OUT=HIRES/counter800/sheet2_b bash tools/slice_back.sh
+IN=HIRES/1989-2F-NF.ppm OUT=HIRES/counter800/sheet2_a bash tools/slice_front.sh
diff --git a/tools/slice_back.sh b/tools/slice_back.sh
new file mode 100644
index 0000000..4f5ad75
--- /dev/null
+++ b/tools/slice_back.sh
@@ -0,0 +1,130 @@
+pnmcut 216 365 360 359 ${IN} > ${OUT}_01_01.ppm
+pnmcut 688 365 360 359 ${IN} > ${OUT}_01_02.ppm
+pnmcut 1161 365 359 359 ${IN} > ${OUT}_01_03.ppm
+pnmcut 1633 365 360 359 ${IN} > ${OUT}_01_04.ppm
+pnmcut 2106 365 359 359 ${IN} > ${OUT}_01_05.ppm
+pnmcut 2578 365 360 359 ${IN} > ${OUT}_01_06.ppm
+pnmcut 3051 365 359 359 ${IN} > ${OUT}_01_07.ppm
+pnmcut 3665 365 359 359 ${IN} > ${OUT}_01_08.ppm
+pnmcut 4137 365 360 359 ${IN} > ${OUT}_01_09.ppm
+pnmcut 4610 365 359 359 ${IN} > ${OUT}_01_10.ppm
+pnmcut 5082 365 360 359 ${IN} > ${OUT}_01_11.ppm
+pnmcut 5555 365 359 359 ${IN} > ${OUT}_01_12.ppm
+pnmcut 6027 365 360 359 ${IN} > ${OUT}_01_13.ppm
+pnmcut 216 814 360 359 ${IN} > ${OUT}_02_01.ppm
+pnmcut 688 814 360 359 ${IN} > ${OUT}_02_02.ppm
+pnmcut 1161 814 359 359 ${IN} > ${OUT}_02_03.ppm
+pnmcut 1633 814 360 359 ${IN} > ${OUT}_02_04.ppm
+pnmcut 2106 814 359 359 ${IN} > ${OUT}_02_05.ppm
+pnmcut 2578 814 360 359 ${IN} > ${OUT}_02_06.ppm
+pnmcut 3051 814 359 359 ${IN} > ${OUT}_02_07.ppm
+pnmcut 3665 814 359 359 ${IN} > ${OUT}_02_08.ppm
+pnmcut 4137 814 360 359 ${IN} > ${OUT}_02_09.ppm
+pnmcut 4610 814 359 359 ${IN} > ${OUT}_02_10.ppm
+pnmcut 5082 814 360 359 ${IN} > ${OUT}_02_11.ppm
+pnmcut 5555 814 359 359 ${IN} > ${OUT}_02_12.ppm
+pnmcut 6027 814 360 359 ${IN} > ${OUT}_02_13.ppm
+pnmcut 216 1263 360 359 ${IN} > ${OUT}_03_01.ppm
+pnmcut 688 1263 360 359 ${IN} > ${OUT}_03_02.ppm
+pnmcut 1161 1263 359 359 ${IN} > ${OUT}_03_03.ppm
+pnmcut 1633 1263 360 359 ${IN} > ${OUT}_03_04.ppm
+pnmcut 2106 1263 359 359 ${IN} > ${OUT}_03_05.ppm
+pnmcut 2578 1263 360 359 ${IN} > ${OUT}_03_06.ppm
+pnmcut 3051 1263 359 359 ${IN} > ${OUT}_03_07.ppm
+pnmcut 3665 1263 359 359 ${IN} > ${OUT}_03_08.ppm
+pnmcut 4137 1263 360 359 ${IN} > ${OUT}_03_09.ppm
+pnmcut 4610 1263 359 359 ${IN} > ${OUT}_03_10.ppm
+pnmcut 5082 1263 360 359 ${IN} > ${OUT}_03_11.ppm
+pnmcut 5555 1263 359 359 ${IN} > ${OUT}_03_12.ppm
+pnmcut 6027 1263 360 359 ${IN} > ${OUT}_03_13.ppm
+pnmcut 216 1711 360 360 ${IN} > ${OUT}_04_01.ppm
+pnmcut 688 1711 360 360 ${IN} > ${OUT}_04_02.ppm
+pnmcut 1161 1711 359 360 ${IN} > ${OUT}_04_03.ppm
+pnmcut 1633 1711 360 360 ${IN} > ${OUT}_04_04.ppm
+pnmcut 2106 1711 359 360 ${IN} > ${OUT}_04_05.ppm
+pnmcut 2578 1711 360 360 ${IN} > ${OUT}_04_06.ppm
+pnmcut 3051 1711 359 360 ${IN} > ${OUT}_04_07.ppm
+pnmcut 3665 1711 359 360 ${IN} > ${OUT}_04_08.ppm
+pnmcut 4137 1711 360 360 ${IN} > ${OUT}_04_09.ppm
+pnmcut 4610 1711 359 360 ${IN} > ${OUT}_04_10.ppm
+pnmcut 5082 1711 360 360 ${IN} > ${OUT}_04_11.ppm
+pnmcut 5555 1711 359 360 ${IN} > ${OUT}_04_12.ppm
+pnmcut 6027 1711 360 360 ${IN} > ${OUT}_04_13.ppm
+pnmcut 216 2160 360 360 ${IN} > ${OUT}_05_01.ppm
+pnmcut 688 2160 360 360 ${IN} > ${OUT}_05_02.ppm
+pnmcut 1161 2160 359 360 ${IN} > ${OUT}_05_03.ppm
+pnmcut 1633 2160 360 360 ${IN} > ${OUT}_05_04.ppm
+pnmcut 2106 2160 359 360 ${IN} > ${OUT}_05_05.ppm
+pnmcut 2578 2160 360 360 ${IN} > ${OUT}_05_06.ppm
+pnmcut 3051 2160 359 360 ${IN} > ${OUT}_05_07.ppm
+pnmcut 3665 2160 359 360 ${IN} > ${OUT}_05_08.ppm
+pnmcut 4137 2160 360 360 ${IN} > ${OUT}_05_09.ppm
+pnmcut 4610 2160 359 360 ${IN} > ${OUT}_05_10.ppm
+pnmcut 5082 2160 360 360 ${IN} > ${OUT}_05_11.ppm
+pnmcut 5555 2160 359 360 ${IN} > ${OUT}_05_12.ppm
+pnmcut 6027 2160 360 360 ${IN} > ${OUT}_05_13.ppm
+pnmcut 216 2609 360 360 ${IN} > ${OUT}_06_01.ppm
+pnmcut 688 2609 360 360 ${IN} > ${OUT}_06_02.ppm
+pnmcut 1161 2609 359 360 ${IN} > ${OUT}_06_03.ppm
+pnmcut 1633 2609 360 360 ${IN} > ${OUT}_06_04.ppm
+pnmcut 2106 2609 359 360 ${IN} > ${OUT}_06_05.ppm
+pnmcut 2578 2609 360 360 ${IN} > ${OUT}_06_06.ppm
+pnmcut 3051 2609 359 360 ${IN} > ${OUT}_06_07.ppm
+pnmcut 3665 2609 359 360 ${IN} > ${OUT}_06_08.ppm
+pnmcut 4137 2609 360 360 ${IN} > ${OUT}_06_09.ppm
+pnmcut 4610 2609 359 360 ${IN} > ${OUT}_06_10.ppm
+pnmcut 5082 2609 360 360 ${IN} > ${OUT}_06_11.ppm
+pnmcut 5555 2609 359 360 ${IN} > ${OUT}_06_12.ppm
+pnmcut 6027 2609 360 360 ${IN} > ${OUT}_06_13.ppm
+pnmcut 216 3058 360 359 ${IN} > ${OUT}_07_01.ppm
+pnmcut 688 3058 360 359 ${IN} > ${OUT}_07_02.ppm
+pnmcut 1161 3058 359 359 ${IN} > ${OUT}_07_03.ppm
+pnmcut 1633 3058 360 359 ${IN} > ${OUT}_07_04.ppm
+pnmcut 2106 3058 359 359 ${IN} > ${OUT}_07_05.ppm
+pnmcut 2578 3058 360 359 ${IN} > ${OUT}_07_06.ppm
+pnmcut 3051 3058 359 359 ${IN} > ${OUT}_07_07.ppm
+pnmcut 3665 3058 359 359 ${IN} > ${OUT}_07_08.ppm
+pnmcut 4137 3058 360 359 ${IN} > ${OUT}_07_09.ppm
+pnmcut 4610 3058 359 359 ${IN} > ${OUT}_07_10.ppm
+pnmcut 5082 3058 360 359 ${IN} > ${OUT}_07_11.ppm
+pnmcut 5555 3058 359 359 ${IN} > ${OUT}_07_12.ppm
+pnmcut 6027 3058 360 359 ${IN} > ${OUT}_07_13.ppm
+pnmcut 216 3507 360 359 ${IN} > ${OUT}_08_01.ppm
+pnmcut 688 3507 360 359 ${IN} > ${OUT}_08_02.ppm
+pnmcut 1161 3507 359 359 ${IN} > ${OUT}_08_03.ppm
+pnmcut 1633 3507 360 359 ${IN} > ${OUT}_08_04.ppm
+pnmcut 2106 3507 359 359 ${IN} > ${OUT}_08_05.ppm
+pnmcut 2578 3507 360 359 ${IN} > ${OUT}_08_06.ppm
+pnmcut 3051 3507 359 359 ${IN} > ${OUT}_08_07.ppm
+pnmcut 3665 3507 359 359 ${IN} > ${OUT}_08_08.ppm
+pnmcut 4137 3507 360 359 ${IN} > ${OUT}_08_09.ppm
+pnmcut 4610 3507 359 359 ${IN} > ${OUT}_08_10.ppm
+pnmcut 5082 3507 360 359 ${IN} > ${OUT}_08_11.ppm
+pnmcut 5555 3507 359 359 ${IN} > ${OUT}_08_12.ppm
+pnmcut 6027 3507 360 359 ${IN} > ${OUT}_08_13.ppm
+pnmcut 216 3956 360 359 ${IN} > ${OUT}_09_01.ppm
+pnmcut 688 3956 360 359 ${IN} > ${OUT}_09_02.ppm
+pnmcut 1161 3956 359 359 ${IN} > ${OUT}_09_03.ppm
+pnmcut 1633 3956 360 359 ${IN} > ${OUT}_09_04.ppm
+pnmcut 2106 3956 359 359 ${IN} > ${OUT}_09_05.ppm
+pnmcut 2578 3956 360 359 ${IN} > ${OUT}_09_06.ppm
+pnmcut 3051 3956 359 359 ${IN} > ${OUT}_09_07.ppm
+pnmcut 3665 3956 359 359 ${IN} > ${OUT}_09_08.ppm
+pnmcut 4137 3956 360 359 ${IN} > ${OUT}_09_09.ppm
+pnmcut 4610 3956 359 359 ${IN} > ${OUT}_09_10.ppm
+pnmcut 5082 3956 360 359 ${IN} > ${OUT}_09_11.ppm
+pnmcut 5555 3956 359 359 ${IN} > ${OUT}_09_12.ppm
+pnmcut 6027 3956 360 359 ${IN} > ${OUT}_09_13.ppm
+pnmcut 216 4404 360 360 ${IN} > ${OUT}_10_01.ppm
+pnmcut 688 4404 360 360 ${IN} > ${OUT}_10_02.ppm
+pnmcut 1161 4404 359 360 ${IN} > ${OUT}_10_03.ppm
+pnmcut 1633 4404 360 360 ${IN} > ${OUT}_10_04.ppm
+pnmcut 2106 4404 359 360 ${IN} > ${OUT}_10_05.ppm
+pnmcut 2578 4404 360 360 ${IN} > ${OUT}_10_06.ppm
+pnmcut 3051 4404 359 360 ${IN} > ${OUT}_10_07.ppm
+pnmcut 3665 4404 359 360 ${IN} > ${OUT}_10_08.ppm
+pnmcut 4137 4404 360 360 ${IN} > ${OUT}_10_09.ppm
+pnmcut 4610 4404 359 360 ${IN} > ${OUT}_10_10.ppm
+pnmcut 5082 4404 360 360 ${IN} > ${OUT}_10_11.ppm
+pnmcut 5555 4404 359 360 ${IN} > ${OUT}_10_12.ppm
+pnmcut 6027 4404 360 360 ${IN} > ${OUT}_10_13.ppm
diff --git a/tools/slice_front.sh b/tools/slice_front.sh
new file mode 100644
index 0000000..42b1533
--- /dev/null
+++ b/tools/slice_front.sh
@@ -0,0 +1,130 @@
+pnmcut 213 365 360 359 ${IN} > ${OUT}_01_01.ppm
+pnmcut 686 365 359 359 ${IN} > ${OUT}_01_02.ppm
+pnmcut 1158 365 360 359 ${IN} > ${OUT}_01_03.ppm
+pnmcut 1631 365 359 359 ${IN} > ${OUT}_01_04.ppm
+pnmcut 2103 365 360 359 ${IN} > ${OUT}_01_05.ppm
+pnmcut 2576 365 359 359 ${IN} > ${OUT}_01_06.ppm
+pnmcut 3190 365 359 359 ${IN} > ${OUT}_01_07.ppm
+pnmcut 3662 365 360 359 ${IN} > ${OUT}_01_08.ppm
+pnmcut 4135 365 359 359 ${IN} > ${OUT}_01_09.ppm
+pnmcut 4607 365 360 359 ${IN} > ${OUT}_01_10.ppm
+pnmcut 5080 365 359 359 ${IN} > ${OUT}_01_11.ppm
+pnmcut 5552 365 360 359 ${IN} > ${OUT}_01_12.ppm
+pnmcut 6024 365 360 359 ${IN} > ${OUT}_01_13.ppm
+pnmcut 213 814 360 359 ${IN} > ${OUT}_02_01.ppm
+pnmcut 686 814 359 359 ${IN} > ${OUT}_02_02.ppm
+pnmcut 1158 814 360 359 ${IN} > ${OUT}_02_03.ppm
+pnmcut 1631 814 359 359 ${IN} > ${OUT}_02_04.ppm
+pnmcut 2103 814 360 359 ${IN} > ${OUT}_02_05.ppm
+pnmcut 2576 814 359 359 ${IN} > ${OUT}_02_06.ppm
+pnmcut 3190 814 359 359 ${IN} > ${OUT}_02_07.ppm
+pnmcut 3662 814 360 359 ${IN} > ${OUT}_02_08.ppm
+pnmcut 4135 814 359 359 ${IN} > ${OUT}_02_09.ppm
+pnmcut 4607 814 360 359 ${IN} > ${OUT}_02_10.ppm
+pnmcut 5080 814 359 359 ${IN} > ${OUT}_02_11.ppm
+pnmcut 5552 814 360 359 ${IN} > ${OUT}_02_12.ppm
+pnmcut 6024 814 360 359 ${IN} > ${OUT}_02_13.ppm
+pnmcut 213 1263 360 359 ${IN} > ${OUT}_03_01.ppm
+pnmcut 686 1263 359 359 ${IN} > ${OUT}_03_02.ppm
+pnmcut 1158 1263 360 359 ${IN} > ${OUT}_03_03.ppm
+pnmcut 1631 1263 359 359 ${IN} > ${OUT}_03_04.ppm
+pnmcut 2103 1263 360 359 ${IN} > ${OUT}_03_05.ppm
+pnmcut 2576 1263 359 359 ${IN} > ${OUT}_03_06.ppm
+pnmcut 3190 1263 359 359 ${IN} > ${OUT}_03_07.ppm
+pnmcut 3662 1263 360 359 ${IN} > ${OUT}_03_08.ppm
+pnmcut 4135 1263 359 359 ${IN} > ${OUT}_03_09.ppm
+pnmcut 4607 1263 360 359 ${IN} > ${OUT}_03_10.ppm
+pnmcut 5080 1263 359 359 ${IN} > ${OUT}_03_11.ppm
+pnmcut 5552 1263 360 359 ${IN} > ${OUT}_03_12.ppm
+pnmcut 6024 1263 360 359 ${IN} > ${OUT}_03_13.ppm
+pnmcut 213 1711 360 360 ${IN} > ${OUT}_04_01.ppm
+pnmcut 686 1711 359 360 ${IN} > ${OUT}_04_02.ppm
+pnmcut 1158 1711 360 360 ${IN} > ${OUT}_04_03.ppm
+pnmcut 1631 1711 359 360 ${IN} > ${OUT}_04_04.ppm
+pnmcut 2103 1711 360 360 ${IN} > ${OUT}_04_05.ppm
+pnmcut 2576 1711 359 360 ${IN} > ${OUT}_04_06.ppm
+pnmcut 3190 1711 359 360 ${IN} > ${OUT}_04_07.ppm
+pnmcut 3662 1711 360 360 ${IN} > ${OUT}_04_08.ppm
+pnmcut 4135 1711 359 360 ${IN} > ${OUT}_04_09.ppm
+pnmcut 4607 1711 360 360 ${IN} > ${OUT}_04_10.ppm
+pnmcut 5080 1711 359 360 ${IN} > ${OUT}_04_11.ppm
+pnmcut 5552 1711 360 360 ${IN} > ${OUT}_04_12.ppm
+pnmcut 6024 1711 360 360 ${IN} > ${OUT}_04_13.ppm
+pnmcut 213 2160 360 360 ${IN} > ${OUT}_05_01.ppm
+pnmcut 686 2160 359 360 ${IN} > ${OUT}_05_02.ppm
+pnmcut 1158 2160 360 360 ${IN} > ${OUT}_05_03.ppm
+pnmcut 1631 2160 359 360 ${IN} > ${OUT}_05_04.ppm
+pnmcut 2103 2160 360 360 ${IN} > ${OUT}_05_05.ppm
+pnmcut 2576 2160 359 360 ${IN} > ${OUT}_05_06.ppm
+pnmcut 3190 2160 359 360 ${IN} > ${OUT}_05_07.ppm
+pnmcut 3662 2160 360 360 ${IN} > ${OUT}_05_08.ppm
+pnmcut 4135 2160 359 360 ${IN} > ${OUT}_05_09.ppm
+pnmcut 4607 2160 360 360 ${IN} > ${OUT}_05_10.ppm
+pnmcut 5080 2160 359 360 ${IN} > ${OUT}_05_11.ppm
+pnmcut 5552 2160 360 360 ${IN} > ${OUT}_05_12.ppm
+pnmcut 6024 2160 360 360 ${IN} > ${OUT}_05_13.ppm
+pnmcut 213 2609 360 360 ${IN} > ${OUT}_06_01.ppm
+pnmcut 686 2609 359 360 ${IN} > ${OUT}_06_02.ppm
+pnmcut 1158 2609 360 360 ${IN} > ${OUT}_06_03.ppm
+pnmcut 1631 2609 359 360 ${IN} > ${OUT}_06_04.ppm
+pnmcut 2103 2609 360 360 ${IN} > ${OUT}_06_05.ppm
+pnmcut 2576 2609 359 360 ${IN} > ${OUT}_06_06.ppm
+pnmcut 3190 2609 359 360 ${IN} > ${OUT}_06_07.ppm
+pnmcut 3662 2609 360 360 ${IN} > ${OUT}_06_08.ppm
+pnmcut 4135 2609 359 360 ${IN} > ${OUT}_06_09.ppm
+pnmcut 4607 2609 360 360 ${IN} > ${OUT}_06_10.ppm
+pnmcut 5080 2609 359 360 ${IN} > ${OUT}_06_11.ppm
+pnmcut 5552 2609 360 360 ${IN} > ${OUT}_06_12.ppm
+pnmcut 6024 2609 360 360 ${IN} > ${OUT}_06_13.ppm
+pnmcut 213 3058 360 359 ${IN} > ${OUT}_07_01.ppm
+pnmcut 686 3058 359 359 ${IN} > ${OUT}_07_02.ppm
+pnmcut 1158 3058 360 359 ${IN} > ${OUT}_07_03.ppm
+pnmcut 1631 3058 359 359 ${IN} > ${OUT}_07_04.ppm
+pnmcut 2103 3058 360 359 ${IN} > ${OUT}_07_05.ppm
+pnmcut 2576 3058 359 359 ${IN} > ${OUT}_07_06.ppm
+pnmcut 3190 3058 359 359 ${IN} > ${OUT}_07_07.ppm
+pnmcut 3662 3058 360 359 ${IN} > ${OUT}_07_08.ppm
+pnmcut 4135 3058 359 359 ${IN} > ${OUT}_07_09.ppm
+pnmcut 4607 3058 360 359 ${IN} > ${OUT}_07_10.ppm
+pnmcut 5080 3058 359 359 ${IN} > ${OUT}_07_11.ppm
+pnmcut 5552 3058 360 359 ${IN} > ${OUT}_07_12.ppm
+pnmcut 6024 3058 360 359 ${IN} > ${OUT}_07_13.ppm
+pnmcut 213 3507 360 359 ${IN} > ${OUT}_08_01.ppm
+pnmcut 686 3507 359 359 ${IN} > ${OUT}_08_02.ppm
+pnmcut 1158 3507 360 359 ${IN} > ${OUT}_08_03.ppm
+pnmcut 1631 3507 359 359 ${IN} > ${OUT}_08_04.ppm
+pnmcut 2103 3507 360 359 ${IN} > ${OUT}_08_05.ppm
+pnmcut 2576 3507 359 359 ${IN} > ${OUT}_08_06.ppm
+pnmcut 3190 3507 359 359 ${IN} > ${OUT}_08_07.ppm
+pnmcut 3662 3507 360 359 ${IN} > ${OUT}_08_08.ppm
+pnmcut 4135 3507 359 359 ${IN} > ${OUT}_08_09.ppm
+pnmcut 4607 3507 360 359 ${IN} > ${OUT}_08_10.ppm
+pnmcut 5080 3507 359 359 ${IN} > ${OUT}_08_11.ppm
+pnmcut 5552 3507 360 359 ${IN} > ${OUT}_08_12.ppm
+pnmcut 6024 3507 360 359 ${IN} > ${OUT}_08_13.ppm
+pnmcut 213 3956 360 359 ${IN} > ${OUT}_09_01.ppm
+pnmcut 686 3956 359 359 ${IN} > ${OUT}_09_02.ppm
+pnmcut 1158 3956 360 359 ${IN} > ${OUT}_09_03.ppm
+pnmcut 1631 3956 359 359 ${IN} > ${OUT}_09_04.ppm
+pnmcut 2103 3956 360 359 ${IN} > ${OUT}_09_05.ppm
+pnmcut 2576 3956 359 359 ${IN} > ${OUT}_09_06.ppm
+pnmcut 3190 3956 359 359 ${IN} > ${OUT}_09_07.ppm
+pnmcut 3662 3956 360 359 ${IN} > ${OUT}_09_08.ppm
+pnmcut 4135 3956 359 359 ${IN} > ${OUT}_09_09.ppm
+pnmcut 4607 3956 360 359 ${IN} > ${OUT}_09_10.ppm
+pnmcut 5080 3956 359 359 ${IN} > ${OUT}_09_11.ppm
+pnmcut 5552 3956 360 359 ${IN} > ${OUT}_09_12.ppm
+pnmcut 6024 3956 360 359 ${IN} > ${OUT}_09_13.ppm
+pnmcut 213 4404 360 360 ${IN} > ${OUT}_10_01.ppm
+pnmcut 686 4404 359 360 ${IN} > ${OUT}_10_02.ppm
+pnmcut 1158 4404 360 360 ${IN} > ${OUT}_10_03.ppm
+pnmcut 1631 4404 359 360 ${IN} > ${OUT}_10_04.ppm
+pnmcut 2103 4404 360 360 ${IN} > ${OUT}_10_05.ppm
+pnmcut 2576 4404 359 360 ${IN} > ${OUT}_10_06.ppm
+pnmcut 3190 4404 359 360 ${IN} > ${OUT}_10_07.ppm
+pnmcut 3662 4404 360 360 ${IN} > ${OUT}_10_08.ppm
+pnmcut 4135 4404 359 360 ${IN} > ${OUT}_10_09.ppm
+pnmcut 4607 4404 360 360 ${IN} > ${OUT}_10_10.ppm
+pnmcut 5080 4404 359 360 ${IN} > ${OUT}_10_11.ppm
+pnmcut 5552 4404 360 360 ${IN} > ${OUT}_10_12.ppm
+pnmcut 6024 4404 360 360 ${IN} > ${OUT}_10_13.ppm