glue icon indicating copy to clipboard operation
glue copied to clipboard

Anti-aliasing issues on retina

Open litchfield opened this issue 10 years ago • 7 comments

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 avatar Jun 25 '14 02:06 litchfield

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 avatar Jun 25 '14 02:06 litchfield

sprite sprite 2x

litchfield avatar Jun 25 '14 02:06 litchfield

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

litchfield avatar Jun 25 '14 02:06 litchfield

I'm also seeing this, any ideas?

pixelbreaker avatar Jul 02 '14 20:07 pixelbreaker

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.

pixelbreaker avatar Jul 02 '14 20:07 pixelbreaker

Hmm, I'm on mavericks too.

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

libpng: stable 1.5.14 (bottled)

litchfield avatar Jul 02 '14 22:07 litchfield

Has anyone solved this problem?

Alldar avatar May 14 '15 16:05 Alldar