画像をASCIIアートに変換する asciiartコマンドを使う

はじめに

画像をAAに変換してみたいなと思ったので調べてみると、asciiartコマンドがUbuntuパッケージにあったので試してみる。

環境

Windows 11 Professional
WSL2 Ubuntu 24.04LTS

nixパッケージマネージャで入れようと思ったがないので aptで入れる。

asciiartのインストール

sudo apt-get install asciiart
ログ
sudo apt-get install asciiart
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  fonts-lato ghostscript imagemagick-6-common javascript-common libjs-jquery liblqr-1-0 libltdl7
  libmagickcore-6.q16-7t64 libncurses6 libraw23t64 libruby libruby3.2 libwebpdemux2 rake ruby
  ruby-net-telnet ruby-pkg-config ruby-rainbow ruby-rmagick ruby-rubygems ruby-sdbm ruby-webrick
  ruby-xmlrpc ruby3.2 rubygems-integration zip
Suggested packages:
  texlive-binaries apache2 | lighttpd | httpd libmagickcore-6.q16-7-extra ri ruby-dev bundler
The following NEW packages will be installed:
  asciiart fonts-lato ghostscript imagemagick-6-common javascript-common libjs-jquery liblqr-1-0 libltdl7
  libmagickcore-6.q16-7t64 libncurses6 libraw23t64 libruby libruby3.2 libwebpdemux2 rake ruby
  ruby-net-telnet ruby-pkg-config ruby-rainbow ruby-rmagick ruby-rubygems ruby-sdbm ruby-webrick
  ruby-xmlrpc ruby3.2 rubygems-integration zip
0 upgraded, 27 newly installed, 0 to remove and 50 not upgraded.
Need to get 11.8 MB of archives.
After this operation, 53.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu noble/main amd64 fonts-lato all 2.015-1 [2781 kB]
Get:2 http://archive.ubuntu.com/ubuntu noble/universe amd64 liblqr-1-0 amd64 0.4.2-2.1build2 [28.5 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble/main amd64 libltdl7 amd64 2.4.7-7build1 [40.3 kB]
Get:4 http://archive.ubuntu.com/ubuntu noble/main amd64 libraw23t64 amd64 0.21.2-2.1build1 [378 kB]
Get:5 http://archive.ubuntu.com/ubuntu noble/main amd64 libwebpdemux2 amd64 1.3.2-0.4build3 [12.4 kB]
Get:6 http://archive.ubuntu.com/ubuntu noble/universe amd64 imagemagick-6-common all 8:6.9.12.98+dfsg1-5.2build2 [69.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble/universe amd64 libmagickcore-6.q16-7t64 amd64 8:6.9.12.98+dfsg1-5.2build2 [1811 kB]
Get:8 http://archive.ubuntu.com/ubuntu noble/main amd64 libncurses6 amd64 6.4+20240113-1ubuntu2 [112 kB]
Get:9 http://archive.ubuntu.com/ubuntu noble/main amd64 rubygems-integration all 1.18 [5336 B]
Get:10 http://archive.ubuntu.com/ubuntu noble/main amd64 rake all 13.0.6-3 [61.6 kB]
Get:11 http://archive.ubuntu.com/ubuntu noble/main amd64 ruby-net-telnet all 0.2.0-1 [13.3 kB]
Get:12 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 ruby-webrick all 1.8.1-1ubuntu0.1 [52.6 kB]
Get:13 http://archive.ubuntu.com/ubuntu noble/main amd64 ruby-xmlrpc all 0.3.2-2 [24.8 kB]
Get:14 http://archive.ubuntu.com/ubuntu noble/main amd64 libruby amd64 1:3.2~ubuntu1 [4694 B]
Get:15 http://archive.ubuntu.com/ubuntu noble/main amd64 ruby-sdbm amd64 1.0.0-5build4 [16.2 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libruby3.2 amd64 3.2.3-1ubuntu0.24.04.3 [5341 kB]
Get:17 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 ruby3.2 amd64 3.2.3-1ubuntu0.24.04.3 [50.7 kB]
Get:18 http://archive.ubuntu.com/ubuntu noble/main amd64 ruby-rubygems all 3.4.20-1 [238 kB]
Get:19 http://archive.ubuntu.com/ubuntu noble/main amd64 ruby amd64 1:3.2~ubuntu1 [3466 B]
Get:20 http://archive.ubuntu.com/ubuntu noble/universe amd64 ruby-pkg-config all 1.5.6-1 [8580 B]
Get:21 http://archive.ubuntu.com/ubuntu noble/universe amd64 ruby-rmagick amd64 5.3.0-2build4 [175 kB]
Get:22 http://archive.ubuntu.com/ubuntu noble/universe amd64 ruby-rainbow all 3.1.1-1 [12.4 kB]
Get:23 http://archive.ubuntu.com/ubuntu noble/universe amd64 asciiart all 0.3.0-2 [6584 B]
Get:24 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 ghostscript amd64 10.02.1~dfsg1-0ubuntu7.4 [43.4 kB]
Get:25 http://archive.ubuntu.com/ubuntu noble/main amd64 javascript-common all 11+nmu1 [5936 B]
Get:26 http://archive.ubuntu.com/ubuntu noble/main amd64 libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB]
Get:27 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 zip amd64 3.0-13ubuntu0.1 [176 kB]
Fetched 11.8 MB in 4s (2771 kB/s)
Selecting previously unselected package fonts-lato.
(Reading database ... 73601 files and directories currently installed.)
Preparing to unpack .../00-fonts-lato_2.015-1_all.deb ...
Unpacking fonts-lato (2.015-1) ...
Selecting previously unselected package liblqr-1-0:amd64.
Preparing to unpack .../01-liblqr-1-0_0.4.2-2.1build2_amd64.deb ...
Unpacking liblqr-1-0:amd64 (0.4.2-2.1build2) ...
Selecting previously unselected package libltdl7:amd64.
Preparing to unpack .../02-libltdl7_2.4.7-7build1_amd64.deb ...
Unpacking libltdl7:amd64 (2.4.7-7build1) ...
Selecting previously unselected package libraw23t64:amd64.
Preparing to unpack .../03-libraw23t64_0.21.2-2.1build1_amd64.deb ...
Unpacking libraw23t64:amd64 (0.21.2-2.1build1) ...
Selecting previously unselected package libwebpdemux2:amd64.
Preparing to unpack .../04-libwebpdemux2_1.3.2-0.4build3_amd64.deb ...
Unpacking libwebpdemux2:amd64 (1.3.2-0.4build3) ...
Selecting previously unselected package imagemagick-6-common.
Preparing to unpack .../05-imagemagick-6-common_8%3a6.9.12.98+dfsg1-5.2build2_all.deb ...
Unpacking imagemagick-6-common (8:6.9.12.98+dfsg1-5.2build2) ...
Selecting previously unselected package libmagickcore-6.q16-7t64:amd64.
Preparing to unpack .../06-libmagickcore-6.q16-7t64_8%3a6.9.12.98+dfsg1-5.2build2_amd64.deb ...
Unpacking libmagickcore-6.q16-7t64:amd64 (8:6.9.12.98+dfsg1-5.2build2) ...
Selecting previously unselected package libncurses6:amd64.
Preparing to unpack .../07-libncurses6_6.4+20240113-1ubuntu2_amd64.deb ...
Unpacking libncurses6:amd64 (6.4+20240113-1ubuntu2) ...
Selecting previously unselected package rubygems-integration.
Preparing to unpack .../08-rubygems-integration_1.18_all.deb ...
Unpacking rubygems-integration (1.18) ...
Selecting previously unselected package rake.
Preparing to unpack .../09-rake_13.0.6-3_all.deb ...
Unpacking rake (13.0.6-3) ...
Selecting previously unselected package ruby-net-telnet.
Preparing to unpack .../10-ruby-net-telnet_0.2.0-1_all.deb ...
Unpacking ruby-net-telnet (0.2.0-1) ...
Selecting previously unselected package ruby-webrick.
Preparing to unpack .../11-ruby-webrick_1.8.1-1ubuntu0.1_all.deb ...
Unpacking ruby-webrick (1.8.1-1ubuntu0.1) ...
Selecting previously unselected package ruby-xmlrpc.
Preparing to unpack .../12-ruby-xmlrpc_0.3.2-2_all.deb ...
Unpacking ruby-xmlrpc (0.3.2-2) ...
Selecting previously unselected package libruby:amd64.
Preparing to unpack .../13-libruby_1%3a3.2~ubuntu1_amd64.deb ...
Unpacking libruby:amd64 (1:3.2~ubuntu1) ...
Selecting previously unselected package ruby-sdbm:amd64.
Preparing to unpack .../14-ruby-sdbm_1.0.0-5build4_amd64.deb ...
Unpacking ruby-sdbm:amd64 (1.0.0-5build4) ...
Selecting previously unselected package libruby3.2:amd64.
Preparing to unpack .../15-libruby3.2_3.2.3-1ubuntu0.24.04.3_amd64.deb ...
Unpacking libruby3.2:amd64 (3.2.3-1ubuntu0.24.04.3) ...
Selecting previously unselected package ruby3.2.
Preparing to unpack .../16-ruby3.2_3.2.3-1ubuntu0.24.04.3_amd64.deb ...
Unpacking ruby3.2 (3.2.3-1ubuntu0.24.04.3) ...
Selecting previously unselected package ruby-rubygems.
Preparing to unpack .../17-ruby-rubygems_3.4.20-1_all.deb ...
Unpacking ruby-rubygems (3.4.20-1) ...
Selecting previously unselected package ruby.
Preparing to unpack .../18-ruby_1%3a3.2~ubuntu1_amd64.deb ...
Unpacking ruby (1:3.2~ubuntu1) ...
Selecting previously unselected package ruby-pkg-config.
Preparing to unpack .../19-ruby-pkg-config_1.5.6-1_all.deb ...
Unpacking ruby-pkg-config (1.5.6-1) ...
Selecting previously unselected package ruby-rmagick:amd64.
Preparing to unpack .../20-ruby-rmagick_5.3.0-2build4_amd64.deb ...
Unpacking ruby-rmagick:amd64 (5.3.0-2build4) ...
Selecting previously unselected package ruby-rainbow.
Preparing to unpack .../21-ruby-rainbow_3.1.1-1_all.deb ...
Unpacking ruby-rainbow (3.1.1-1) ...
Selecting previously unselected package asciiart.
Preparing to unpack .../22-asciiart_0.3.0-2_all.deb ...
Unpacking asciiart (0.3.0-2) ...
Selecting previously unselected package ghostscript.
Preparing to unpack .../23-ghostscript_10.02.1~dfsg1-0ubuntu7.4_amd64.deb ...
Unpacking ghostscript (10.02.1~dfsg1-0ubuntu7.4) ...
Selecting previously unselected package javascript-common.
Preparing to unpack .../24-javascript-common_11+nmu1_all.deb ...
Unpacking javascript-common (11+nmu1) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../25-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ...
Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ...
Selecting previously unselected package zip.
Preparing to unpack .../26-zip_3.0-13ubuntu0.1_amd64.deb ...
Unpacking zip (3.0-13ubuntu0.1) ...
Setting up javascript-common (11+nmu1) ...
Setting up ruby-rainbow (3.1.1-1) ...
Setting up imagemagick-6-common (8:6.9.12.98+dfsg1-5.2build2) ...
Setting up fonts-lato (2.015-1) ...
Setting up libwebpdemux2:amd64 (1.3.2-0.4build3) ...
Setting up rubygems-integration (1.18) ...
Setting up ghostscript (10.02.1~dfsg1-0ubuntu7.4) ...
Setting up zip (3.0-13ubuntu0.1) ...
Setting up libncurses6:amd64 (6.4+20240113-1ubuntu2) ...
Setting up ruby-net-telnet (0.2.0-1) ...
Setting up libltdl7:amd64 (2.4.7-7build1) ...
Setting up libraw23t64:amd64 (0.21.2-2.1build1) ...
Setting up ruby-webrick (1.8.1-1ubuntu0.1) ...
Setting up liblqr-1-0:amd64 (0.4.2-2.1build2) ...
Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ...
Setting up ruby-xmlrpc (0.3.2-2) ...
Setting up libmagickcore-6.q16-7t64:amd64 (8:6.9.12.98+dfsg1-5.2build2) ...
Setting up rake (13.0.6-3) ...
Setting up libruby:amd64 (1:3.2~ubuntu1) ...
Setting up ruby-rubygems (3.4.20-1) ...
Setting up ruby-sdbm:amd64 (1.0.0-5build4) ...
Setting up libruby3.2:amd64 (3.2.3-1ubuntu0.24.04.3) ...
Setting up ruby3.2 (3.2.3-1ubuntu0.24.04.3) ...
Setting up ruby (1:3.2~ubuntu1) ...
Setting up ruby-pkg-config (1.5.6-1) ...
Setting up ruby-rmagick:amd64 (5.3.0-2build4) ...
Setting up asciiart (0.3.0-2) ...
Processing triggers for fontconfig (2.15.0-1.1ubuntu2) ...
Processing triggers for libc-bin (2.39-0ubuntu8.3) ...
Processing triggers for man-db (2.12.0-4build2) ...

asciiartを使う

man asciiart
manコマンド結果
       asciiart [options] <path_or_url>

DESCRIPTION
       asciiart is a command line tool to turn images into ASCII art. It can also be used as a library in
       Ruby programs.

OPTIONS
       -w, --width WIDTH
              Width of the finished Ascii Art (Default: 100)

       -f, --format [text/html]
              output format (Default: text)

       -c, --color
              Switch to use colored terminal output (Default: false)

       -i, --invert-chars
              Invert  the  character  map.  Depending  on your terminal and image this can make the image
              clearer (or a lot worse)

       -v, --version
              print asciiart version.

       -h, --help
              show this message.

                                              November 2015                                   asciiart(1)

asciiart <ファイル or URL>

成果物

HELLCARDのカード画像

 ~/test  asciiart ss-1.png                                                                    ✔ │ 18:37:29
+----------------------------------------------------------------------------------------------------+
|   .~.............~~.                                                                               |
|   ~=+++++++++++++++~                                                                               |
|   ~+~~:::::::++::~~.                                                                               |
|   ~+~~~~~~+:.::~~~~.                                                           .........~~~~.      |
|   .+~~~~~.~+.~~~~~:~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~................+==oooooooo=+:.     |
|   .:~~~~~.~+ ~~~~~:~~::::::::::::::::::+++:::+++:+::::::::::::::::::::::::::::::~::++=====+::      |
|   ~:~~~~.~:+...~~~~~~:::::+++::::++::::::::::::::::++:::::::::::::::::+::::::::~~~~.~====+::~      |
|   ~:~~~~.......~~~~::+====o=============================++++===============++++++::~+=+:+:::~      |
|   ::~~~~......~~:+=====================:::+===+++=:~:~:~~~~.+=====================++++~.~:::~.     |
|   .~...~~~~~:=======+:::+++===++++++:+=:~:~~:+:~.~~........~+====+::+==++++==+:::=====o:.~::~.     |
|        .+~~~+====+++~::~:+.:=~~~:+~~.~==+:~.~::.~~~~~::.~~.~++::::~..+=~~~~::~:~.~++++=:~~::..     |
|        ~=:~~+=+==:~:~~~~~+.:=+:~~+.~::++::::~~~:==+~~:.~++++~~~~=~.:+==+:~~~~~=..:++++=:~~:~..     |
|        .+:::==+==+~:.::~:~.+=+~:~+~~~.~:~~~~~:++++:~~.~+===++:~.+.:+=+::::::~~:.:+++++=+:::~..     |
|        ~=++:==++++:~~~::~~+==+~~~~~:::+++:++++++++++:++++++++++~~.++++:~~~~~~+..++++++=:::::~.     |
|       .:+++:+=++++++:~~~:++++=++++++==++++++++++++++==++==+++++++++++++:::~~~~.~+++++++::~~:~.     |
|       .++::~~==+++++++++===++:~~~~~~:::::::::::::::~:::::::~~~~:~~~~~~::+++++::::::+++~~:~~~..     |
|       .~+:~~~+=++++++++::~...        .............    .......  ......  ..~~::+++::::+:~~::+:..     |
|        ~:~~~~:=++::~...         .................      ................     ..~::+++=~~~~:+:..     |
|       .~~~~~~~:+..         .....~~~~~~~~~~~~~~~..........~~~~~~~~~.~~~~....   ....~::~~~~~::..     |
|       .:~~~~~~~:.  ............::::~~~~~~~:::~............~:::~~~~~~:::~.............~~~~~~~..     |
|      .~~~~~~~~:~.............~:+:+:~~~~::++:~..............~:+::~~~:+:++~~::~..........~~~~~..     |
|      .~~:~~...:~.......~~~:::++::+:~:+++++~.................~++++:~++:++==+:.........~...~::~.     |
|      ~~~:~~.~~+:.......:+=====+:::::===+:~...................:===+:++:+===:.........~:~~.~::..     |
|      ...::~~~:+:.........~+=oo==+::=ooo:.....................:oo=+::+=oo+~..........~++~~~+:..     |
|        .+::~:++:...........+ooooo+:+ooo+~........~~........~+ooo+::=+oo=~...........~=+:~:+:..     |
|        .++:~:++:..........~oooo+=o+:+=oo=+~~~~:++=o=:~..~~+=oo=+:+oo+=oo~...........~==:~:+:..     |
|        .++:~:+=:..........:=ooo++++:::+oooo==ooooo=oo=:+=ooo==+::+=++ooo+~..........~==:~:+:..     |
|       ..++:~:+=+...........~~:=o====+++++=oo=++:~..~+=ooo=+++++++++=ooo=:...........~=+:~:+:..     |
|       ..++:::+=+..........~~:~:+=oooooo=+:++~~~~~~~~~~:++::==oooooooo=:.............~=+:~:+:..     |
|       ..++:::+=+..........~:=oooooooo==++:::+:::::::::::~++===ooo=:~~...............~=+:~:+:..     |
|       ..++:::+=+............~:=oooo====oo:::::::::::~:~:~:====oo=~..................~o+:~:+:..     |
|       ..++:::+=+...............~+ooooo==+::~.~:::::~.~:~:~:=oooo:...................~o+:~:+:..     |
|       ..==:~:+=+.................~+oooo=~..~~~:::::~.~~.~..:ooo=~...................~o+:~:+:..     |
|       ..++:::+=+..................~=ooo+....:::::::::.......:ooo+~..................~o=:~:::..     |
|       ..++:~:+=+..................~=ooo+....::::::::~........+ooo:..................~o=:~::~..     |
|        .++:::+o+..................~oooo+....~:::::::.........:ooo+..................~o=:~::~..     |
|        .++:::+=+..................:oooo:.....::~:~:..........:ooo=:~................~o=:~::~..     |
|        .+=:::+=+...............~:+=ooo=~......:~:~...........~=oooo=+:~.............~o=::::~..     |
|       ..+=:~:+=+..............~=oooo+~........~~~~.............~:+=oooo=:~..........~o=:~::~..     |
|       ..+=:~:+=+..............+oo==:.........~~~~~~~~..............~+oooo:..........~==:~:+:..     |
|       ..+=:~:+=+.............:====:.........+======++:~.............~=ooo=~.........~=+:~:+:..     |
|       ..++:::+=+..........~~:+==++~~~~~~~::+=======+::++++++++++++:::=oooo:~~.......~=+:~:+:..     |
|       ..++:~:+=+....~~::++=====++++============+++++:++++====================++:~...~=+:~:+:..     |
|       ..++:~:+=+::+++===+++++++++++++++++:::++=++++::+::::::::::::++++++++++++====+::=+:~::~..     |
|        .+::~~+++==++++++++++::::::~~~~~~~~...~~++++:~.............~~~~~:::+++++++==oo=++~:::..     |
|        .+::~:++++++++::~~~~.~...................~::........................~~::++++++++:~::~..     |
|        .+::::+++::~~~...........................................................~~:+++++:::~..     |
|        .+::::+++~...................~~...............~~.....~.......................~+++:::~..     |
|       ..++:~~++:...~:~..~~.~...~:...~~:..~~~~..::~..::::~.~:+~..:~~..~~.:~.~.~..:~~.~+++::::..     |
|       ..++:~:++:...~:....~~~..~~~~..~:~........~:~..~~:~~..::..~~.~..~.~~.~~~...~~~.~+++:~::..     |
|       ..++:~:++:......................................................~.............~+++:~::..     |
|       ..+::~:++:.....~...................~~...~~::~..~~~........~..~~~~..~~~...~~...~:++::::..     |
|        .+::::++:.....~.....~..........~..:+:..:::++..~~.........:.~+:::.~~~.~..:~~..~+++::::..     |
|        .+::~:++:...........~..............~~..~~~~~...~...~.....~..~.~~.~~.~..~..~..~+++::+:..     |
|        .:::~:++~....................................................................~+++::+:..     |
|        .:::~:++~........................~~~~.~+:~..~~.~~.~~.........................~:++::+:..     |
|       ..:::::++:........................~~....::~..~~~~~.~~...~.....................~:++::+:..     |
|       ..:::~:++:....................................~.........~......................:=+::+:..     |
|       ..:::~:++:..........~.....................~.................~.~................:=+::+:..     |
|       .~+:~~~++~.....~....~~...........~.......~........~.........~~~~...~~~.........:++::=+..     |
|       .:=:~~~++~.................................~~..~....~........~.~...~~~.~~.....~:++::+:~.     |
|       .+++~~~::::~................................................................~~:+++:+:~~.     |
|       .+==+~~++::::~............................~~~...............~~~~~~~~~~~~.~~~+++++::+~~~.     |
|       .+==+++++~~:++::::::+:::::::::~~~~~~~~~::~~~~~::~~~~~~~~:::::+++++++++:::++++++=++++~~~.     |
|       .==+++++:~~~~~:::::::::::::::~~........++:~:+=+:.......~~~~::::::::::::::::::++++++++:~.     |
|       ~=+++::~~~::::::::::::::+:::~~.........++:~~+++~........~~~::::::::::::::+:::::~~::++::.     |
|       ~+::~~~~~~~~~~...........................................................~~~~...~~~~~~:.     |
|                                                                                                    |
|                                                                                                    |
+----------------------------------------------------------------------------------------------------+

フリー画像

https://game-materials.com/fantastic_sky/

asciiart  https://game-materials.com/wp-content/uploads/2024/01/fantastic_sky4.jpg
 ~/test  asciiart  https://game-materials.com/wp-content/uploads/2024/01/fantastic_sky4.jpg   ✔ │ 18:37:36
+----------------------------------------------------------------------------------------------------+
|......................~.....~~:~.............                                                       |
|......................~~~~~.~~~~~::~~.................                                              |
|.............~.~::~~~~~:~~~~~~~~~~~~::~~.............~~~..                                          |
|...~.~..~~~~~~~~::+++=+++:::::::::::~~~~~~~~.................                                       |
|~~~~~~~~~~~~~~~~~::+++++++++++++++:+::::++:~~~~..............  ....         .:~.                    |
|:::::~~:+++++++++++++++++++++++++++++++++++:::++::~..~~~......................... .                 |
|~:::::::::++++++=============+=++++++++++++++++++++:~~~...................   .            ...       |
|:::::+++++++++++++++===================++++++++++~~~~~~~~~~~~~~~~~..................~~~~~~~..       |
|====++++++++++++========o===ooooo===oo===++==++:::::~~~~~~~:++:++::~..~~~~.............~~~:::::~~...|
|====+======+++==========oooooooooooo=======++++++:++++:::::++:::~==+~~~~~~~~..~~.~:::~~~~~~~~~~~~...|
|++++==+++==============ooooooooooooooooo====+++=++==++===+:++=++=o=++:~~~~~~:::++++:~~++::~~~~~...~~|
|ooooo=+++====oooooooooo=ooooooooooooooo===========++++++++=+====+++++++:::::+::::::::=+:+++~~~~~~~~~|
|oooo=++++++++===oooooo===ooooooooooooooo=========++=+++++++=+:::::++++=+++++++++++++==+:::++~~~~~~~:|
|oooo==+++++=++++==+=oooooooooooooooooooo=============++=++:::~::~~~:+++++++++++++++=o++:++++:+++++++|
|==ooo=+:::+++++++++=======oooooooooooooooooo===oo==++=++++::::::~:~::~:+========o====+::++::++++++++|
|+=o=+::::+++++++++==++++======o==oooooooooooooo==++======+++++++++:::::::+oo===o=++:::::++++::++~~::|
|===++=+++++++++++++++++=======o=oooooooooooooo=++::+++===o======++====+++=o====o=++::::::++:::++~~~:|
|++===+====+++++++++++++++++++=ooooooooooo==++==++:+++===========++++++===o=+++++===+++++++:::::::+++|
|++++:+++++====++++++++++==+====oooooooo==+==+++++=o===++++=======++============o==++++++++::++=++++=|
|++++++==+++++====+++++++++=+++==ooo=========+++====+++++++=====+++=oooo=ooo=====++++++:::+==oo=+==++|
|==+====oo====+============================o=========================================+=====oo=:..~+++|
|oo=o=+=oo=========================oo=======oo======ooo=oo=========o=+++========++========oo+~... .~+|
|==++::++++=====o==================================o===+===+===+++++++:++++++++====+++++++=o=:..  .::|
|+:..~++++::+::++==+++===+++++++++++++++++++========++++:::::++++++++++::+::::::::::+==++=o+~......~:|
|~~..~~~:::::+:::++++:::++:::::::+:::::::::::+++++++=++==+++:~~~~~~~~~~~~~~~~~~~~~~=oo=====::+:~.    |
|++:~~~~~~~~~~~~~~~:~:::::::+::~~~~~~~~~~~~~~~+=+++++~~~~~~~~....................~:=o=:.....~:~.   ..|
|~~+~................~~..................~~........................   ... ...........~:~......       |
|  ..~~:~.     ...................       ..                                    .       . ...~...     |
+----------------------------------------------------------------------------------------------------+

オプション

オプション説明デフォルト値
-w, --width WIDTH完成した ASCII アートの幅を指定する100
-f, --format [text/html]出力形式を指定する(text または htmltext
-c, --colorカラフルな端末出力を使用するfalse
-i, --invert-chars文字マップを反転する。これにより、端末や画像によって画像が見やすくなる場合があるなし
-v, --versionasciiart のバージョンを表示するなし
-h, --helpこのヘルプメッセージを表示するなし

参考

おわりに

画像をasciiartにするということをやってみた。
人物系の画像、アニメのキャラとかであればもっとわかりやすい感じになりそう。

Hugo で構築されています。
テーマ StackJimmy によって設計されています。