Skip to main content
Participating Frequently
December 14, 2016
Question

Why do compound shapes render differently at the pixel level than individual shapes in Illustrator?

  • December 14, 2016
  • 2 replies
  • 1469 views

When working with compound shapes, pixels are rendered differently than individual shapes. To give some context, I have a set of pixel grid optimized icons that I am trying to export in a transparent format, after creating compound shapes.

Simple example shown below, of a 20 px by 20 px rectangle, with a 4 px by 4 px circle on top, both perfectly aligned to the pixel grid. The left is two individual shapes. The right is a compound shape, created using Minus Front in the Pathfinder Palette.

White Artboard (Zoomed In View):

Transparent Artboard (Zoomed In View):

Exported PNG 24 graphic with transparency, using Save for Web (Anti-Aliasing - Art Optimized):

Exported PNG 24 graphic with transparency, using Export for Screens (Anti-Aliasing - Art Optimized):

As you can see the left circle appears sharp and precise, regardless of export method, while the right compound shape appears fuzzy and smaller, so to speak.

To make things more interesting, below is an example of the same compound shape brought over into Photoshop, as a Smart Object, by pasting from the clipboard (Zoomed In View):

The same Photoshop file exported using Export, Export As, in PNG 24 format with transparency:

The compound shape appears perfectly sharp, when exported from Photoshop, but does not when exported from Illustrator.

Is there any way to achieve sharp raster graphics from compound shapes, directly from Illustrator?

This topic has been closed for replies.

2 replies

Ton Frederiks
Community Expert
Community Expert
December 20, 2016

It is probably the difference between transparency and no transparency.

The compound paths are rendered transparent which is probably using a different anti-aliasing algorithm as opaque objects.

Participating Frequently
December 21, 2016

The same issue happens whether it is exported without transparency, as in the second example I posted. However, you may be correct that the algorithm differs between compound shapes and paths vs. individual objects.

However, if that is the case, is there any way that I can achieve the same sharpness as when the objects were individual shapes?

Ton Frederiks
Community Expert
Community Expert
December 21, 2016

You may try the Rasterize Effect in Illustrator to see if that gives a result that comes closer to what you want.

Participating Frequently
December 20, 2016

Here's another example (without transparency this time, although the issue occurs both with and without transparency).

Individual shapes:

Compound shape:

Notice how the top of the arrow is not as sharp in the compound shape.

Zoomed in view from Photoshop below.

Individual shapes:

Compound shape:

The pixels are rendered completely differently between the individual and compound shapes. The color values are also different. The individual shapes have a lighter, more defined edge. The compound shape has a harsher transition directly from white to a darker shade of gray.

Monika Gause
Community Expert
Community Expert
December 20, 2016

You might want to post this as a bug/feature request.

Most people on this forum are normal users just as you. We don't have any insight into the working of the code.

Participating Frequently
December 20, 2016

Thanks for the suggestion Monika. I wasn't sure if there was a setting or something I was overlooking. I thought maybe someone had run into the issue before.

If it is a bug, I'm looking for recommendations on how I might be able to solve the issue, or a workaround to it. Potentially an alternative method for creating transparency.