summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--img/john.dat2
-rw-r--r--john.dat3
-rwxr-xr-xjohn_pnm.cgi7
3 files changed, 9 insertions, 3 deletions
diff --git a/img/john.dat b/img/john.dat
deleted file mode 100644
index 90cf141..0000000
--- a/img/john.dat
+++ /dev/null
@@ -1,2 +0,0 @@
-file img/john_1.pnm img/john_2.pnm img/john_3.pnm
-file img/john.pnm
diff --git a/john.dat b/john.dat
index 639f806..4e16e31 100644
--- a/john.dat
+++ b/john.dat
@@ -1,2 +1,3 @@
dep framebuf
-dep img/john
+file john.lua
+file img/john.pnm
diff --git a/john_pnm.cgi b/john_pnm.cgi
new file mode 100755
index 0000000..2e3ba3a
--- /dev/null
+++ b/john_pnm.cgi
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+JOHN_DIR="/home/rebecca/shed/gnom/john/ads"
+
+johnfile="$JOHN_DIR/$(ls "$JOHN_DIR"|shuf -n1)"
+anytopnm <"$johnfile" | ppmtoppm | pnmscale -height=114
+