Skip to content

Instantly share code, notes, and snippets.

@grimrose
Created December 18, 2012 13:01
Show Gist options
  • Save grimrose/4327814 to your computer and use it in GitHub Desktop.
Save grimrose/4327814 to your computer and use it in GitHub Desktop.
jpegをアスキーアートに変換する ref: http://qiita.com/items/c8144222abcad84532c7
#!/bin/bash
echo 'convert start.'
noise_option="$1"
if [ -z $noise_option ]; then
noise_option=0
fi
echo "noise_option: [$noise_option]"
if [ -e irof.html ]; then
rm irof.html
fi
java -jar jitac-0.2.0.jar -H -o irof.html -n $noise_option irof.jpeg
if [ -e irof.html ]; then
echo "convert success!"
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment