3 ms·
So... It's a bitmap-image written in CSS boxshadows. It's a bitmap written in text. The resulting CSS is 247KB. Taking the same image and saving as a JPG (whic
by josteink 14y ago
So... It's a bitmap-image written in CSS boxshadows. It's a bitmap written in text.
The resulting CSS is 247KB. Taking the same image and saving as a JPG (which I think is fair, since it's fairly blurry) results in a 40KB file. That's more than 6 times smaller.
If you scale it down to the detail level found the CSS (each CSS-"pixel" being a 4x5 unit) even a PNG will easily beat it at 24KB. Here the JPG also clocks in at 6KB.
So I don't get it. Using CSS, using a text-format to encode bitmaps has always been and will always provide subpar results. Ok. So it can be done. We know that. It has been proven times and times again.
Apart from that: What's the point?
- hk__2 14y agoEven the gzipped version is 49kb.
- TazeTSchnitzel 14y agoI was going to say this sort of thing would be useful on reddit for subreddit stylesheets, but they allow uploading images. So there's no practical application at all.
- dandelany 14y agoIt's just a hack. You're on Hacker News. If you don't like it, don't upvote it. This reminds me of when I brought a friend of mine to Maker Fair in NYC last year... We were surrounded by a strange amalgamation of weird gadgets and "art", and sometimes the line between the two is not always so clear :) The entire time we were there she kept asking "but what is it FOR?!" or "but who would WANT a thing like that?". I've always found myself asking questions like "ooh what does it do?" and "what can I learn from it?"
- josteink 14y agoSure. It's a hack. I get it. Hacks are cool. But this is a hack which has been posted a million times over and over the last few months. At some point the novelty wears off and IMO this one is way past due. Apart from that, I was asking if there was anything else I was missing. From the responses I got, it seems the answer is "no".