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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: my spare time project, an on-site QR image decoder

14 点作者 dgarner大约 12 年前

4 条评论

tmslnz大约 12 年前
Not sure I understand why this was even created in the first place. Wouldn't it suffice to simply spell out the content of the QR next to it, on hover or else? It's not like QR codes are born out of thin air; if you place a QR on your site then it's unlikely you don't know what data it represents.
评论 #5379853 未加载
hiroprot大约 12 年前
As others have said, I think the project isn't super useful. The most interesting thing I saw on the page was an attempt at hiding the source for the script by putting it into an image, and then decoding it.<p>Pretty easy to decode and just console.log though. Here's a Gist of the source for anybody who's interested:<p><a href="https://gist.github.com/anonymous/5169037" rel="nofollow">https://gist.github.com/anonymous/5169037</a>
评论 #5380069 未加载
franze大约 12 年前
ok, besides the fact that this is the most non-existent use case in the history of QR codes ever, i would love to take a look at the source code if he really managed (and how he managed) to get a QR decoder in 1.5kb. sadly this is not (easily) possible because the script is base64img/canvas encoded, which is (his good right but non the less) very annoying.
评论 #5379831 未加载
评论 #5379838 未加载
Nyarlah大约 12 年前
It seems all this code does is send the image url to a remote server that does the decoding and returns the content. I'm actually not sure how this takes 1.5kb of code.