summaryrefslogtreecommitdiff
path: root/splitpnm.sh
blob: 5661eb4cb8c9640c2f21bd57061826b1600b0d42 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

pngtopnm "$1" >john.pnm
fname="john.pnm"

pamcut -left=0 -width=328 <"$fname" >"img/john_1.pnm"
pamcut -cropleft=328 -width=328 <"$fname" >"img/john_2.pnm"
pamcut -cropleft=656 <"$fname" >"img/john_3.pnm"
echo "file img/john_1.pnm img/john_2.pnm img/john_3.pnm" >img/john.dat
./launch.sh ./beeite.lua