Re:Designing for A Retina Web
by mgcross on Monday August 20, 2012 @05:42PM
(#4409939)
I've only been using 2x images for UI elements and logos. Photos still look fine at standard res (especially if 'Saved for Web' with a .25 blur). A recent project included a 25K 8-bit 2x sprite sheet, and a 13K 1x sprite sheet for LTE IE8. So not much of a difference if limited to elements that really need to be crisp.
[ Parent
| on HN ]
Re:Designing for A Retina Web
by harlanlewis on Monday August 20, 2012 @05:51PM
(#4409970)
Another good approach to small elements like these is using icon fonts. For example, GitHub recently changed all of their nav icons from sprites to a custom icon font called Octicons:
Say Hello to Octicons: https://github.com/blog/1106-say-hello-to-octicons
The Making of Octicons: https://github.com/blog/1135-the-making-of-octicons
Edit: I realize icon fonts are mentioned in the Smashing Mag article, but GitHub's articles are considerably more thorough.
Icon fonts just seem to like such a hack to me in a world where SVG exists. Is the entire idea behind using them just that IE 7/8 doesn't have SVG support? How did lack of SVG support even happen? SVG seems like something any modern browser should have had for years.
Re:Designing for A Retina Web
by yusefnapora on Monday August 20, 2012 @07:27PM
(#4410335)
Android also lacked SVG support until 3.2. The justification I read was that they deliberately disabled it from their webkit build to save 1MB in the compiled binary. Sad, especially since pre-ICS phones are by far the most prevalent.
Re:Designing for A Retina Web
by justincormack on Tuesday August 21, 2012 @04:41AM
(#4411748)
Although a low Res image fallback is OK there.
I would love to use SVG, but support just isn't robust enough. Hard to deal with hover/active states too. Icon fonts are one request and easy to style with CSS color and text-shadow (even simulating glows). I just wish there was an easy way to generate a small font set from a the handful of vector elements I need for a given website (custom elements, that is, not using a service like Pictos).
You can hint a font. You can't hint an SVG.
Huh, that is unfortunate. Is hinting still important on devices with such high DPI though?
Re:Designing for A Retina Web
by Chris_Newton on Tuesday August 21, 2012 @06:14AM
(#4412037)
It’s not usually the high-dpi devices that you’d be adding hints for. The point is that anything that is going to replace today’s pixel-perfect bitmap graphics still has to look pixel-perfect when rendered on lower-dpi devices, which is going to remain by far the majority of visitors to most sites for a while yet.
I believe IE was trying to push the roughly equivalent VML format.
Nice, I love that they created a large and small version so that the details weren't interpolated away when down sampled. The 'making of' is great, I'm going to forward this to our designers.
Re:Designing for A Retina Web
by jchavannes on Monday August 20, 2012 @06:59PM
(#4410231)
I've actually taken it even further and bumped up to 4x+ to account for zooming as well. Especially for charts.