summaryrefslogtreecommitdiff
path: root/splitpnm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'splitpnm.sh')
-rwxr-xr-xsplitpnm.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/splitpnm.sh b/splitpnm.sh
new file mode 100755
index 0000000..3981175
--- /dev/null
+++ b/splitpnm.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+fname="$1"
+
+pamcut -left=0 -width=328 <"$fname" >"john_1.pnm"
+pamcut -cropleft=328 -width=328 <"$fname" >"john_2.pnm"
+pamcut -cropleft=656 <"$fname" >"john_3.pnm"
+echo "file john_1.pnm john_2.pnm john_3.pnm" >img/john.dat
+./launch.sh ./beeite.lua