TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Make your HTML documents portable by converting images to Base64

5 点作者 zenull超过 3 年前

3 条评论

assemblylang超过 3 年前
I made a tool like this called humble[0] with a CLI interface that base64 encodes and inlines everything in an HTML file, images, audio, video, CSS, JS, favicons, cursors. The file sizes will be large of course (base64 encoding incurs a 34% size penalty), but useful in cases where you want portable single file documents.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;assemblylanguage&#x2F;humble" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;assemblylanguage&#x2F;humble</a>
torstenvl超过 3 年前
..... are they not portable otherwise? Are there platforms that <i>can</i> read an image format in embedded base64 but <i>can&#x27;t</i> read it from a separate file?
评论 #30272829 未加载
FerretFred超过 3 年前
Yup, I already do this. Very useful. However, some of the larger images tend to take up a <i>lot</i> of space in the HTML document.