Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

アニメーションGIFをパイプ出力できるように #90

Merged
merged 1 commit into from
Dec 24, 2019

Conversation

yoichi
Copy link
Contributor

@yoichi yoichi commented Dec 24, 2019

Qiita の記事 (https://qiita.com/yami_buta/items/e18508b04ef9e300775f) を見て、textimg の出力するアニメーションをパイプで img2sixel に渡せたら素敵だなと思いました。

img2sixel の方がtextimgが出力するGIFに対応してなかったので、 saitoha/libsixel#115 で報告し、対応いただきました。

一方、textimg では出力がパイプの場合に png 決め打ちになっていたため、 -a オプションを指定した場合には gif として扱うようにする必要がありました。それを対応しています。

libsixel の修正版との組み合わせで macOS の iTerm2 でアニメーション表示ができるのを確認済みです:

$ echo -en {,,,,,,,,,,}{,,,,,,,,,,}"\U1f32"{{4..9},{9..4..-1}}|tr -d ' '|grep -Eo .'{1,11}'|bin/textimg -al11 -F40 -d8 | ../libsixel/converters/img2sixel

@jiro4989
Copy link
Owner

これは素晴らしいですね

LGTM 👍

@jiro4989 jiro4989 merged commit 9fd9ff6 into jiro4989:master Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants