23
Retina Display The highest resolution in websites and apps today

Retina Display - Supporting in Web Projects

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Retina Display - Supporting in Web Projects

Retina DisplayThe highest resolution in websites and apps today

Page 2: Retina Display - Supporting in Web Projects

What’s a Retina Display?

Page 3: Retina Display - Supporting in Web Projects

Overview

• Marketing Term created by Apple

• iPhone 4 was the first device (2010)

• High pixel density displays (~300 ppi or greater)

• One pixel split into 4 pixels

• Drastically reduces pixelation

Page 4: Retina Display - Supporting in Web Projects

See the difference?

Page 5: Retina Display - Supporting in Web Projects

See the difference?

Page 6: Retina Display - Supporting in Web Projects

Supported DevicesDevice Resolution Pixel DensityiPhone 4S 960x640 326 ppi

iPhone 5 1136x640 326 ppi

iPad 3rd + 4th Gen. 2048x1536 264 ppi

Macbook Pro 13” 2560x1600 227 ppi

Macbook Pro 15” 2880x1800 220 ppi

...other companies investing as well in HiDPi displays

Page 7: Retina Display - Supporting in Web Projects

Designing for Retina

Page 8: Retina Display - Supporting in Web Projects

• Use for rasterized retina artwork

• Setup document 2x normal resolution(960w @1x = 1920w @2x)

• Keep resolution at 72 ppi

• Typography follows 2x rule(14px @1x = 28px @2x)

• Layer Style measurements divisible by 2

• Pay attention to zoom levels

Page 9: Retina Display - Supporting in Web Projects
Page 10: Retina Display - Supporting in Web Projects

• Use for vectorized retina artwork

• Does not require document setup adjustments

• Trim artboards to artwork when possible

• SVG format great for icons, logos, small graphics

• Export to <canvas> via free Ai plugin

Page 11: Retina Display - Supporting in Web Projects

Don’t forget favicons!

• Used for both websites and apps

• Supports HiDPi

• Saved as .png(Can use Photoshop or Illustrator)

• Various sizes for mobile devices

Page 12: Retina Display - Supporting in Web Projects

Developing for Retina

Page 13: Retina Display - Supporting in Web Projects

Raster Artwork .jpg, .gif, .png

Vector Artwork .svg, <canvas>

Choose the right file type

Page 14: Retina Display - Supporting in Web Projects

Exporting Raster

• Export artwork twice per image(1x and 2x the default resolution)

• Append @2x to file name for retina version(image.png for 1x, [email protected] for 2x)

• Pay attention to layer style settings!

• Tip: Use ImageOptim for safe image compressions

Page 15: Retina Display - Supporting in Web Projects

Exporting Vector

• Export artwork only once!

• Trim artboards to artwork when possible(Lower file size and greater flexibility in CSS positioning)

• Use SVG default settings (SVG 1.1)

• SVG now fully recommended*(Not supported in IE8 or lower, Android Browser 2.3 or lower)

Page 16: Retina Display - Supporting in Web Projects

Background Images

.sweet-graphic {

width: 50px;

height: 50px;

background-image: url(“images/sweet-graphic.png”);

}

• Use media queries for Background Images (raster only)

• Set background-size property to size of original graphic

• Tip: SVG backgrounds require background-size by default

Page 17: Retina Display - Supporting in Web Projects

Background Images@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (min--moz-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5) {

.sweet-graphic {

background-image: url(“images/[email protected]”);

background-size: 50px auto;

}

}

Page 18: Retina Display - Supporting in Web Projects

Inline Images

• Use Retina.JS for Inline Images

• Store both 1x and 2x graphics in same directory

Page 19: Retina Display - Supporting in Web Projects

Favicons!<!-- For iPhone w/ retina -->

<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/filename.png">

<!-- For iPad w/o retina-->

<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/filename.png">

<!-- For iPad w/ retina -->

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/filename.png">

<!-- For iPhone 3G, iPod Touch and Android, size=”57x57” -->

<link rel="apple-touch-icon-precomposed" href="/filename.png">

<!-- For everything else -->

<link rel="shortcut icon" href="/favicon.png">

Page 20: Retina Display - Supporting in Web Projects

Selling for Retina

Page 21: Retina Display - Supporting in Web Projects

The benefits are clear!

• PC + Mac devices moving toward HiDPi screens

• Mobile manufacturers ahead of the curve

• Improves user experience

• No performance hit on older technology

• Great for web/mobile apps, photo-centric sites

Page 22: Retina Display - Supporting in Web Projects

10%NEW PROJECTS TODAY

• Retroactive projects currently quoted on per case basis(Not enough information at this time)

• Projects already in the mix with retina(Picture.com, TweetBox, Ateb, Atlantic BT, Docurep, Muzik, etc.)

Page 23: Retina Display - Supporting in Web Projects

Retina DisplayThe highest resolution in websites and apps today