smlyさんのブクマより、cacaviewというのがあることを知ったので試してみた。 Ubuntuだと sudo apt-get install caca-utilsでインストールできます。 カラーにも対応しているので分かりやすい。ドット絵っぽい見た目になります。 libcacaというAA化ライブラリを使っているようです。
sshで作業しているときに画像を見たいことがあって、ウェブのディレクトリにコピーしたりが面倒なのでコマンドラインから見れるようにしました。 こんな感じで見れます。 やっていることは、 指定された画像のフォーマットをPNMに変換してaviewに渡す というだけです。 aviewというは、aalibというライブラリで画像をAAに変換したあとcursesのUIで表示できるソフトなのですが、これがPNMしか読めないようなので、JPEGやPNG、GIFなどの一般的な画像フォーマットをaviewが読めるフォーマットに変換してから渡すというスクリプトを作りました。 netpbmを使うと、 jpegtopnm hoge.jpg | aviewで済むのですが、長いし… こんなの。 ターミナルで画像を確認できるaviewはマジ便利です。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く