bbc / Imager.js

Responsive images while we wait for srcset to finish cooking
Apache License 2.0
3.84k stars 224 forks source link

How can I responsive to retina device? #37

Closed qcgm1978 closed 10 years ago

qcgm1978 commented 10 years ago

Hello everybody: I want the web page is responsive to retina device, but imager.js only reference to generated img regardless of the devicePixelRatio of the device. Whether should I introduce Retina.js in the page? Doesn't imager.js handle the condition?

Best Regards.

thom4parisot commented 10 years ago

This is something in progress, handled in #27

It will land any time soon :-) (but you can still use the refactoring-base branch, it should be stable enough).

qcgm1978 commented 10 years ago

Thank you very much. I will try that.

thom4parisot commented 10 years ago

@qcgm1978 pay attention to that comment, this is the syntax to use if you checkout Imager.js on the refactoring-base branch.

thom4parisot commented 10 years ago

This has now landed officially with the 0.1.0 release. It is documented in the README so reopen the issue if this is not satisfying enough.

qcgm1978 commented 10 years ago

Ok, thanks your endeavor. If possible, I'll apply it in my project.