Mar 17 2013

#!/bin/sh

# npm install picture-tube
# this is for png image

convert $1 /tmp/un.png
if test $# -eq 2 ; then
    ~/node_modules/picture-tube/bin/tube.js --cols $2 /tmp/un.png
else
    ~/node_modules/picture-tube/bin/tube.js /tmp/un.png
fi
rm /tmp/un.png