51cards / Stack-Exchange-Bounty-Ad

Programmatic Bounty Advertisement
6 stars 0 forks source link

Retina support #5

Closed kylecronin closed 11 years ago

kylecronin commented 12 years ago

We should look into supporting retina devices. This should be a piece of cake, just return an image that's double the size in both dimensions. We need retina artwork though - Nathan?

ngreenstein commented 12 years ago

The hard part (read: impossible) is detecting whether a device is retina or not. All we get is a user agent, which doesn't specify. Should we just send a progressively-encoded jpeg at double resolution to everybody?

kylecronin commented 12 years ago

I was just thinking about sending a double resolution image to every single person. What is a progressively encoded JPEG?

ngreenstein commented 12 years ago

Progressively encoded jpegs load in low quality at first and then sharpen up as the download finishes. It's good to use on high DPI images so that they are visible earlier on slow connections.

kylecronin commented 12 years ago

The images are around 8k currently, presumably will be around 32k when served for retina, is that really large enough to need to do a progressive JPEG? Even at 56kbps, that's just a few seconds of download time.

If we need it we can make it work, but I'm not sure we do. For now, why don't we concentrate on making retina versions of bottom.png, top.png, and invalid-referrer.png.