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

Add support to convert in terminal with node #30

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

otomn
Copy link

@otomn otomn commented Apr 28, 2021

No description provided.

@tiansh
Copy link
Owner

tiansh commented Apr 29, 2021

俩事儿:
一个是这个项目目前没在维护,所以不会考虑收 PR。
一个是 bilibili 现在用的弹幕文件的格式似乎也不是这个。

然后我没仔细看代码,所以不是太清楚中间计算尺寸那里你是怎么做的,Node 有 canvas 支持吗?

还有就是我至少自己也没什么用 node 处理的需求。

@otomn
Copy link
Author

otomn commented Apr 29, 2021

弹幕文件我用的you-get下载的,格式还是一样。
计算尺寸是假设所有字符都是正方形全尺寸字符,所以直接取字符串长度。计算结果比实际尺寸更大,但是实际效果看不出来区别。
主要是能搭配you-get批量下载处理,还是挺方便的。

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.

2 participants