Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does AI deal with pixel density ratio? #36

Closed
benfrain opened this issue Mar 16, 2012 · 1 comment
Closed

How does AI deal with pixel density ratio? #36

benfrain opened this issue Mar 16, 2012 · 1 comment

Comments

@benfrain
Copy link

May have missed this in the documentation, but how does AI handle pixel density? E.g. does it play well with retina displays allowing image@x2.png style images to be loaded for retina displays?

@MattWilcox
Copy link
Owner

It has an alternative JS snippet which will allow it to detect retina displays, just use that instead of the normal one :)

<script>document.cookie='resolution='+(Math.max(screen.width,screen.height)*("devicePixelRatio" in window ? devicePixelRatio : 1))+'; path=/';</script>

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

No branches or pull requests

2 participants