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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

JavaScript Image Compress Using HTML5 Canvas and File API Before Upload

32 点作者 huzoorbux超过 5 年前

4 条评论

Piskvorrr超过 5 年前
Database hugged to death :(<p>Oh wait. It&#x27;s a redirect to StackOverflow?!<p><a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;23945494&#x2F;use-html5-to-resize-an-image-before-upload" rel="nofollow">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;23945494&#x2F;use-html5-to-re...</a>
评论 #21249719 未加载
评论 #21251640 未加载
accosine超过 5 年前
This can be done in like five lines of Javascript. Why does this even rank on HN?
评论 #21249402 未加载
评论 #21248513 未加载
devwastaken超过 5 年前
browsers need to have an API to access the underlying libraries. No reason I shouldn&#x27;t be able to use turbojpeg or libpng clientside. Can&#x27;t even do it in WebAssembly, because simd was an afterthought.
mcraiha超过 5 年前
There should be a law that says: &quot;one shall not use var in JavaScript code examples&quot;
评论 #21249363 未加载