Retina Display Guide

DeviceDevice Pixel RatioImage Needed
Standard display1x1ร— base size
Retina (most iPhones)2x2ร— base size
Retina HD (iPhone Plus/Pro Max)3x3ร— base size
Android (high-end)2.5โ€“3x3ร— recommended
If you display a 100ร—100 CSS pixel image, provide a 200ร—200px (@2x) and 300ร—300px (@3x) version.
<!-- Using srcset -->
<img src="image.jpg"
srcset="[email protected] 2x, [email protected] 3x"
width="200" height="200" alt="...">
<!-- Using picture element -->
<picture>
<source srcset="[email protected] 2x" type="image/webp">
<img src="image.jpg" srcset="[email protected] 2x" alt="...">
</picture>
/* CSS background retina */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
.logo { background-image: url('[email protected]'); background-size: 100px 50px; }
}