TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

how to optimized images to make it sharp on ipad3?

1 pointsby jaylinabout 13 years ago

1 comment

jaylinabout 13 years ago
The simplest answer is just to double the dimensions of the image then use CSS to make it the right size.<p>So if you want to create an HD image at 200 x 200 on a Retina display, create the image at 400 x 400 then use CSS to control the HD image down to 200 x 200: img { width:200px; height:200px; }.<p>The HD images are still 72 dpi resolution.<p>The tricky part is then preventing non-HD devices from unnecessarily downloading the larger images.