Skip to content
This repository has been archived by the owner on Jun 12, 2020. It is now read-only.

Support loading 2x images for retina/high-dpi displays #18

Closed
callumlocke opened this issue Feb 11, 2016 · 0 comments
Closed

Support loading 2x images for retina/high-dpi displays #18

callumlocke opened this issue Feb 11, 2016 · 0 comments

Comments

@callumlocke
Copy link

picturefill supports srcset's 2x syntax:

<picture>
  <source srcset="examples/images/large.jpg, examples/images/extralarge.jpg 2x" media="(min-width: 800px)">
  <img srcset="examples/images/small.jpg, examples/images/medium.jpg 2x" alt="...">
</picture>

n-image could have a highDensity: true option to add a 2x image service url for each configured size, automatically.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants