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

是否考虑增加将上传的图片自动转为base64编码的设置? #1487

Closed
lesliexufdu opened this issue Oct 25, 2023 · 1 comment
Closed

Comments

@lesliexufdu
Copy link

你在什么场景下需要该功能?

很多文档需要上传图片,现在一般使用图床之类的工具,一来使用麻烦,二来需要额外维护图片库,还有失效的风险。
如果将图片内嵌进MD文件,就可以解决这个问题,代价是文件大小会稍微增大。

描述最优的解决方案

我的做法通常是转换成base64的编码:

<img src="data:image/png;base64,···">

仅作参考。

其他信息

我觉得可以增加一个设置,可以自动将图片转化成编码格式,也可以仍使用URL的形式。

@Vanessa219
Copy link
Owner

#1231

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

No branches or pull requests

2 participants