Live data from Hacker News

Retina.js: Retina graphics for your website

retinajs.com

21–30 of 102 posts

Re: Retina.js: Retina graphics for your website

#21
post #2

Can we please stop using the silly Apple marketing gimmick "retina display" yet? It's a high-DPI display. Lots of devices have it. Lets not attempt to pretend there's anything Apple-specific about that.

I've understood that technically the main idea of "retina" is that the physical display pixels no longer map one-to-one with the logical user interface (CSS) pixels. Instead, the retina display appears as a virtual low-resolution screen that is able to utilize higher-resolution images (which would otherwise be scaled down).

So in this sense, I would claim there is a clear technical difference between just higher-resolution screens (more pixels) and retina displays (same pixels but "better looking").

To me this virtualization of pixels seems like a good idea, since the majority of web pages assume pixels have certain DPI range. Operating systems like OSX treat pixels as floats anyway, so if you need subpixel accuracy, it's still possible.

Re: Retina.js: Retina graphics for your website

#22
post #2

Can we please stop using the silly Apple marketing gimmick "retina display" yet? It's a high-DPI display. Lots of devices have it. Lets not attempt to pretend there's anything Apple-specific about that.

There is nothing silly no gimmicky about it. It is just a catchy name for some technology. There are a lot of similar marketing terms in tech. Lots more people will understand what you are talking about when you say "retina display" instead of "high-DPI display". What's high-DPI? What's high-DPI when talking about pentile displays? Not to mention that "retina" is easier to pronounce. Apple loves simpler names for a reason.

Re: Retina.js: Retina graphics for your website

#23
As high DPI displays become more common, it seems like the time has come for more advanced file formats (or just using the more advanced features of existing formats). For example, PNG already has an interlacing mode that progressively adds detail to the image (http://en.wikipedia.org/wiki/Adam7_algorithm). It could easily be co-opted such that a normal image contains 6 layers of detail, with an additional "retina extension" image that high DPI browsers grab to refine the quality. This avoids the waste of downloading a low DPI image, then throwing it away to replace it with high DPI.

Even more interesting is http://en.wikipedia.org/wiki/JPEG_2000, which has "truncatable" bitstreams. You can stop getting data at any point, and depending on the encoding choices, you'll just lose fidelity in colour, resolution etc. Encoders can reorder the bitstream to deliver whatever is most useful for the image first. Browsers could then just stop when "enough" has been downloaded to satisfy the demands of the device; high DPI devices would just continue to grab more of the bitstream. It's really useful for devices on low bandwidth links, as you start getting visual results with very little data.

JPEG 2000 hasn't been widely implemented outside of specialised devices, mostly because it's computationally heavy compared to JPEG, and the patent situation is unclear. Although this does mean that it could be implemented in a targeted way, designed to solve these problems (the spec for the entire format is huge). Moreover, one of the patent holders is, IIRC, Apple.

Re: Retina.js: Retina graphics for your website

#24
post #14
post #13

Earlier quoted context omitted.

Would it be better to sniff the header? Accept: RETINA Something like that, at least then you could turn it off in the browser.

Might be just as well to sniff the user agent.

Is there a difference in the user agent between iOS 5.1 on a 3GS and a 4S?

Re: Retina.js: Retina graphics for your website

#25
post #17
post #4

Earlier quoted context omitted.

As soon as we stop saying Jeep, Walkman, Zipper, Kleenex, Laundromat, Xerox and all the other proprietary eponyms

Well to be fair, it's been several years since I've heard anyone call an SUV a Jeep (other than a Jeep), a tissue a Kleenex, or a copy machine a Xerox. But Zipper was a brand name?? What the hell is the generic product name for a zipper?

Doesn't seem to have a consistent one, clasp fastener or separable fastener are earlier generic terms. BTW Zipper wasn't trademarked by the creator or manufacturer but by BF Goodrich when used on their zipped-up boots.

Two which surprised me were Ping Pong and Adrenaline.

Re: Retina.js: Retina graphics for your website

#26
post #21
post #2

Can we please stop using the silly Apple marketing gimmick "retina display" yet? It's a high-DPI display. Lots of devices have it. Lets not attempt to pretend there's anything Apple-specific about that.

I've understood that technically the main idea of "retina" is that the physical display pixels no longer map one-to-one with the logical user interface (CSS) pixels. Instead, the retina display appears as a virtual low-resolution screen that is able to utilize higher-resolution images (which would otherwise be scaled down). So in this sense, I would claim there is a clear technical difference between just higher-reso…

No, the distinction of device pixels vs. CSS pixels predates the first "Retina" iPhone. The distinction existed in all browsers supporting full page zoom, including the Safari on the first iPhone, and in Opera for years before that.

"Retina" is just a marketing term for "pixels so small your eye can't distinguish them at a normal distance anymore".

Re: Retina.js: Retina graphics for your website

#27
post #16

I like the idea however there was some discussion that Safari on the new iPad downsamples the images even if they are at retina resolutions. I have not looked at the code however I hope that this issue is addressed.

That was only non-progressive JPGs

Re: Retina.js: Retina graphics for your website

#29

As high DPI displays become more common, it seems like the time has come for more advanced file formats (or just using the more advanced features of existing formats). For example, PNG already has an interlacing mode that progressively adds detail to the image ( http://en.wikipedia.org/wiki/Adam7_algorithm ). It could easily be co-opted such that a normal image contains 6 layers of detail, with an additional "retina…

The idea of compound images is really interesting, although it would require an extra HTTP request to fetch the hight-DPI portion of the image. But maybe less of a problem over SPDY?

The idea truncatable bitstreams is fascinating too. I'm not well versed in networking, but wouldn't the latency of a mobile network kill the benefit of this technique? e.g, by the time the server receives the "connection closed" signal, a large part of the extra data would have been sent, no?

Post reply on HN