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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

This is not an image. It's an HTML table.

83 点作者 discountgenius超过 12 年前

31 条评论

josteink超过 12 年前
<i>I finally discovered a somewhat useful reason to resurrect my childhood idea. My web store, BTC Gear has bought up some ad space on the Bitcoin Talk forums which allow small, image-free HTML ads with CSS styling.</i><p>To me this sounds dodgy. The whole point about these ads is that they are supposed to be unintrusive and <i>not have images</i>.<p>Abusing HTML to re-inject what is in effect just that, images, sounds like blatant violation of TOS. This can cause bad rep for the ad-provider who has promised site-owners image-free ads, and bad rep for site-owners who has promised end-users (or maybe VIP members) an ad-free or ad-limited experience.<p>While this may technically be a "cool" (yet obvious) hack, the reasons stated for doing them are wrong on every single level. I wouldn't want to encourage this.
评论 #4444008 未加载
dwwoelfel超过 12 年前
I did this, too: <a href="http://www.imgtocss.com" rel="nofollow">http://www.imgtocss.com</a>. It was one of my first webapps.<p>I think that my implementation is about as compact as possible while still working in all email clients. Outlook has an odd limit on the number of columns.<p>Here's the HN thread where I debuted the thing: <a href="http://news.ycombinator.com/item?id=2491438" rel="nofollow">http://news.ycombinator.com/item?id=2491438</a><p>It hasn't been a huge money-maker for me. I've got one subscriber at $30 a month and every now and then someone gives me $5 for a few conversions. It costs me $3 a week to run on Google App Engine.
评论 #4443026 未加载
评论 #4444012 未加载
ernestipark超过 12 年前
I remember reading that Google did this for their checkout shopping cart image since it meant faster loading times. At a scale like Google's where they can measure the impact on the bottom line, something as ridiculous as this can make sense.
erik超过 12 年前
I played with something like this a while ago. Interestingly, I found that my gzip'd table html had a smaller file size than the source png, even after png crush. Though I suspect I was doing something wrong to get a result like that.<p><a href="http://disruption.ca/code/png2html/" rel="nofollow">http://disruption.ca/code/png2html/</a>
评论 #4442679 未加载
Maci超过 12 年前
See also this news posting:<p><a href="http://news.ycombinator.com/item?id=4438373" rel="nofollow">http://news.ycombinator.com/item?id=4438373</a><p>Walter Zorn made a drawing library that churns out pixel sized DIVs.
ttttttttttttttt超过 12 年前
HTML table is one of the Gimp's built-in output formats.
ssdsa超过 12 年前
I did this in 1997 (!): <a href="http://home.wtal.de/ss/html/pnmtohtml/pnmtohtml.html" rel="nofollow">http://home.wtal.de/ss/html/pnmtohtml/pnmtohtml.html</a> (Sample images and C source included).
Kafka超过 12 年前
I played with the same kind of hack back in the nineties and then in JavaScript+HTML table in 2001. <a href="http://plea.se/me/galen_man.htm" rel="nofollow">http://plea.se/me/galen_man.htm</a> (it was hideously slow to scroll down back then)<p><a href="http://plea.se/me/mandelnikala.html" rel="nofollow">http://plea.se/me/mandelnikala.html</a>
MiWDesktopHack超过 12 年前
Very interesting idea -- The idea that one can bypass image filters (say at a network DPI level) would be useful, until this technique is discovered and detectable.<p>What about some client-side js that read png/jpeg and converted to a colored tabular pixel array, makes it more difficult for a naive user to 'copy-paste' image.
GICodeWarrior超过 12 年前
Cool idea. :-)<p>Clearly not aiming for smallest representation though. ;-) <a href="https://github.com/discountgenius/pixeltable/blob/master/pixeltable.py" rel="nofollow">https://github.com/discountgenius/pixeltable/blob/master/pix...</a><p>First off, the p class should just go on the table instead of every pixel. Then use a descendant combinator "table.p td".<p>Next, I would probably index the image (like a gif) down to a few hundred colors, create a style for each, and then use a base62 (0-9A-Za-z) representation of the index as a class name.<p>You can further reduce the content size if you can use ids instead of classes, but even with classes, you don't need the quotes around the class names.<p>There are probably more ways as well, like using a fixed-width div container and filling it with floating &#60;b&#62; tags instead of using a table.
评论 #4442471 未加载
评论 #4442237 未加载
tene超过 12 年前
This is not an HTML table. It's an error establishing a database connection.
评论 #4442195 未加载
评论 #4442196 未加载
OkGoDoIt超过 12 年前
This may be horribly off-topic, but your link to your old tripod site made me nostalgic for my own preteen tripod/angelfire/geocities days. They don't seem to be live anymore, nor can I find them on the Internet Archive WayBack machine. I suppose they are gone for good, but do you have any other suggestions for trying to find them? I heard there was a huge dump of GeoCities available as a torrent, but I don't recall that I ever used my GeoCites page as much as the others.
mqzaidi超过 12 年前
I am curious, why not just use a data-uri and inline the image?
评论 #4442352 未加载
评论 #4442510 未加载
taitems超过 12 年前
Try hitting "CTRL +" to zoom and it will bring your system to a halt.<p>Interesting effect though. It's what some crafty devs are doing to get around image blocking in modern email clients, like here: <a href="http://www.campaignmonitor.com/blog/post/3642/email-with-pixel-art-fallback-when-images-are-blocked" rel="nofollow">http://www.campaignmonitor.com/blog/post/3642/email-with-pix...</a>
评论 #4443089 未加载
ndabas超过 12 年前
The output can be made much smaller if you just encode (and possibly compress) the bitmap data as a (base64?) string in JavaScript, then use a little JavaScript to actually render it at runtime. You can then have all sorts of optimizations - render using CSS data URIs or canvas where available, for example, to make it look better on iPads and other high-DPI devices.
zephyrfalcon超过 12 年前
I did something similar a while back: <a href="http://zephyrfalcon.org/weblog/arch_d7_2003_11_29.html#e420" rel="nofollow">http://zephyrfalcon.org/weblog/arch_d7_2003_11_29.html#e420</a><p>It was more of an experiment than anything else. Certainly not too practical. :) One nice thing is that you can easily "scale" the image by changing the size of the table cells.
jahewson超过 12 年前
Both this and similar attempts in CSS (<a href="http://www.imgtocss.com/" rel="nofollow">http://www.imgtocss.com/</a>) look really bad on my iPad as I zoom in and out, there are little grey anti-alias lines all over the "image". Totally unusable.
评论 #4443245 未加载
TazeTSchnitzel超过 12 年前
Three things:<p>1. Google used to do this to reduce request overhead when displaying Google Checkout icon in search results.<p>2. Data URIs essentially render this pointless for newer browsers<p>3. I've tried using a lot of divs and animating them to simulate a canvas. Very slow. Do not try.
评论 #4442617 未加载
0x0超过 12 年前
I used html tables as a poor man's pixel grid canvas for doing some very simple javascript software 3d object rendering animations many many years ago. Unfortunately, it seems I've lost the source.
daurnimator超过 12 年前
idea for improvement: Use colspan to cut down on the number of cells
评论 #4442229 未加载
评论 #4442227 未加载
joeblau超过 12 年前
I did something like this for a government project 6 years ago. We had to email a status update (HTML) and we couldn't have any images so we found a site that turned images into tables.<p>Worked great!
alok-g超过 12 年前
My custom CSS makes it disappear (while normal images stay). Web developers should keep accessibility features of browsers in mind when coming up with ideas like these.
emp_超过 12 年前
This brings back great memories, it is how I used to do tiny round corners back in the day, then I remember gmail came with a smarter way using divs and margins.
gbog超过 12 年前
Same thing done prior 2006 there: <a href="http://www.cssplay.co.uk/menu/cssart.html" rel="nofollow">http://www.cssplay.co.uk/menu/cssart.html</a>
pbhjpbhj超过 12 年前
I get emails from a company which have as a fallback to table based images (but not pixel cells, they're block renderings), PizzaExpress IIRC.
评论 #4442831 未加载
davidw超过 12 年前
I think I remember someone doing this in the late 90ies. It's a cute idea and a fun hack, but doesn't have a lot of practical applications.
Ra1d3n超过 12 年前
Theoretically, SVGs should have exactly the same benefits (e.g. load times) without any of the "hackiness".
whichdan超过 12 年前
For anyone too lazy to use web inspector: It's 100x40, so effectively a 100-row 4000-cell table.
评论 #4442212 未加载
guilloche超过 12 年前
A hack trying to leverage current system without real merits
monsterix超过 12 年前
I think HN moderators could have a pause button for top threads like these. If there is a problem for the baby tech thing, just put the thread on pause for sometime [vanish] and bring the thread back online [reappear] the moment DB error/any error is sorted out.<p>Quite often we see connection errors or other problems for these new cool things, and the guys behind it lose a lot of crucial steam.
评论 #4442461 未加载
评论 #4442391 未加载
zodiac1111超过 12 年前
this is interesting, <a href="http://www.h3manth.com/content/convert-any-image-html5-canvas" rel="nofollow">http://www.h3manth.com/content/convert-any-image-html5-canva...</a> An example: <a href="http://www.osctools.net/jsbin/milbthqo/1/edit#javascript,html,live" rel="nofollow">http://www.osctools.net/jsbin/milbthqo/1/edit#javascript,htm...</a>