(2018/05/13 追記)
version 0.1.2 で、高さ指定のオプションは、-t
に修正された。
つい先ほど、画像をテキスト化してくれる node.js ライブラリの asciify-image
を知り、遊んでみた。
今更ながら、asciify-image 知って、遊んでる。 pic.twitter.com/w4sLV70NIP
— ほりひろ (@hori__hiro) 2018年5月12日
いろいろオプションを変えて遊んでいたが、高さ指定の --height
オプションが効かない。
$ asciify image.jpg --height 200
Usage: asciify [options] [path]
Options:
-c, --color true for color, false for B/W
-r, --c-ratio character width-height ratio
-f, --fit resize rule: box, height, width, original, none
-h, --height height to resize to
-w, --width width to resize to
See the readme for detailed options and defaults
Example:
$ asciify lolwut.png -c false
どうやら --height
オプションが、-h
と解釈され、--help
扱いになり、--height
の使い方を案内してくれる事態に。
--ratio
と --width
で頑張るしかないか。