LoginSignup
0
0

More than 5 years have passed since last update.

asciify-image を CLI として使う場合、height 指定ができない (version 0.1.2 で修正済み)

Last updated at Posted at 2018-05-12

(2018/05/13 追記)
version 0.1.2 で、高さ指定のオプションは、-t修正された


つい先ほど、画像をテキスト化してくれる node.js ライブラリの asciify-image を知り、遊んでみた。

いろいろオプションを変えて遊んでいたが、高さ指定の --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 で頑張るしかないか。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0