As you can see on the image there are multiple small lines where the different paths meet in my logo. I asked this question: Unable to draw logo with correct strokes and shadow

And I have tried both the transformation and doing the "Expand apperance", "Expand" and then merge. However it leaves me with the lines in the final exported EPS and also on the result. The last method with expanding also removes the gradient when I merge. I have no clue why it does that.

How can I remove these lines? Why are they there?

enter image description here


It seems like it is the white stroke that does this nonsense. How to fix? I have just added a black rectangle to show the white line. enter image description here

  • 1
    Is the entire original infinity path still present? I have only seen this behavior when two objects touch and there is nothing underneath. – Wildcard Jul 10 '17 at 23:37
  • 1
    Also, note that in the answer you got, this is mentioned: did you try "Art Optimized" export? – Wildcard Jul 10 '17 at 23:37
  • 1
    Yes, it is if I understand your first question. And yes, but that does not help. – Andreas Jul 10 '17 at 23:39
  • This is really very specific while at the same time being very broad... I know that sounds like an dichotomy, but it isn't. It's too specific because it really depends on how the artwork is constructed it's too broad because it also depends upon the final desired output. In short, you expand, merge and remove the underlying object causing the anti-aliasing error. In this case, that white stroke. – Scott Jul 11 '17 at 0:16
  • 1
    See here for a possible reasoning... graphicdesign.stackexchange.com/questions/73601/… – Scott Jul 11 '17 at 0:33

It's just a visual rendering artefact from having perfectly aligned and overlapping shapes.

You can see the same thing by perfectly overlaying a couple of rectangles:

enter image description here

You shouldn't see the same on a raster export. This is the same exported to a PNG:

enter image description here

The solution is simply not having perfectly aligned and overlapping shapes. So you build in to your shapes an offset one way or the other (either expand the top shape outwards or the bottom shape inwards). You can do this with a stroke, offsetting the path (Object → Path → Offset Path...), transforming the object... it doesn't matter how, as long as the shapes (or the visual appearance thereof) have some overlap and don't perfectly align.

In your example the white shape isn't needed anyway; it's just a side effect of how the artwork is constructed. So on your final artwork you can get rid of it... The easiest way is to expand everything (Object → Expand Appearance / Object → Expand) and use Pathfinder to merge everything. Leaving you with something this:

enter image description here

You say you already tried expanded everything and merging the paths, but there must still be paths where you see the lines; there's no way for them to be there without something being there to create them...

An easy way to check is to enter Outline View (cmd+Y).

You should see this:

enter image description here

If you still see paths where there shouldn't be then you need to go in and manually fix them. Manually cut the paths and rejoin them or nudge the points so both shapes overlap and use Pathfinder on the individual pieces. Again, it doesn't really matter how, just that you remove the unnecessary overlapping paths.

enter image description here

This is a common problem. It's the reason for the hidden notches in Hillary Clinton's logo and plenty of previous Q&As:

  • But the gradient is lost when I merge everything. The gradient that you made in the last question. – Andreas Jul 11 '17 at 7:06
  • Then don't merge the gradient. – Cai Jul 11 '17 at 7:07
  • But if I merge everything but the gradient then the whole road will be beneath the gradient. – Andreas Jul 11 '17 at 7:08
  • Then you mask or otherwise cut out the overlapping part of the gradient – Cai Jul 11 '17 at 7:27
  • Ah, and that is not a stupid way of doing it? It is just because of the way illustrator works? – Andreas Jul 11 '17 at 7:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.