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

Anti-aliasing issues on retina #159

Open
litchfield opened this issue Jun 25, 2014 · 7 comments
Open

Anti-aliasing issues on retina #159

litchfield opened this issue Jun 25, 2014 · 7 comments

Comments

@litchfield
Copy link

I'm seeing severe anti-aliasing issues on the edges of transparent png sprites that have been shrunk for the lower ratio versions in retina mode

Is there a way to control the anti-aliasing algorithm being used?

@litchfield
Copy link
Author

Also. When using multiple ratios, do I need to ensure all source image dimensions are divisible by the target ratios? Eg for retina, width/height of source images should be even numbers?

Or does glue automatically append whitespace to ensure a clean shrink? So for retina, odd dimensions might automatically pad by one pixel.

@litchfield
Copy link
Author

sprite
sprite 2x

@litchfield
Copy link
Author

Notice the hideous grey lines on the edges of the reduced images.

@pixelbreaker
Copy link

I'm also seeing this, any ideas?

@pixelbreaker
Copy link

I've fixed this for me. Try running glue --version see what you have. I only had 0.3!!!

As I'm on mavericks, I had to run sudo env ARCHFLAGS='-arch i386 -arch x86_64' pip install glue --upgrade to get it to upgrade. Non-retina anti-aliasing is all fine for me now.

@litchfield
Copy link
Author

Hmm, I'm on mavericks too.

glue==0.9.4
Pillow==2.4.0
PIL==1.1.7

libpng: stable 1.5.14 (bottled)

@Alldar
Copy link

Alldar commented May 14, 2015

Has anyone solved this problem?

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