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

Retina sprites appearing blurred on iOS #28

Open
howells opened this issue Oct 18, 2013 · 3 comments
Open

Retina sprites appearing blurred on iOS #28

howells opened this issue Oct 18, 2013 · 3 comments

Comments

@howells
Copy link

howells commented Oct 18, 2013

Hi -

I have a super strange problem that I haven't seen before, even though I have used your mixin on multiple projects with no problem.

On my Retina Macbook Pro, everything works as expected, but on iOS—iPhone 4, 5, and iPad—the retina sprites look blurry, even though when I inspect via Safari the right retina sprite image is being loaded.

The site in question is http://pca.kulor.net if you want to take a look. Can you see what is going on? It's driving me nuts!

@howells
Copy link
Author

howells commented Oct 19, 2013

I discovered the problem was because one of the individual sprites was 1300px wide: when it was removed and teh sprite map regenerated, everything worked fine.

@AdamBrodzinski
Copy link
Owner

Oh wow that's a big sprite! I didn't realize there was a width limitation.

@novascreen
Copy link
Collaborator

in terms of limitation there is also a limit where iOS is just not loading the sprite at all, it might be something like 3 mega pixels. To avoid that you should try to not mix small icons and things that are very wide, create a sprite with all the small icons and create one with the very wide images like logos or sth.
Because Compass creates the sprite vertically one wide icon will blow up the total resolution of the sprite immensely.

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

3 participants