Created
December 18, 2012 13:01
-
-
Save grimrose/4327814 to your computer and use it in GitHub Desktop.
jpegをアスキーアートに変換する ref: http://qiita.com/items/c8144222abcad84532c7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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