1

I am new to Illustrator and am suffering when trying to export 2 unified vectors to PNG file.

The exported image ends up with the "trace" on union of two objects.

Is there any way to solve this "problem"?

Exported result (.png):

enter image description here

On Illustrator file:

Vector's Joined

No lines here:

Joined on Illustrator (no lines here) Separated

Export Settings:

Export Settings

3

It's because of limited pixel density in exported png

=> when you make anything in illustrator it means you've made vector asset and vector is based on points which is Density independent so no matter how long or small you zoom it. it'll be always same clear as before and no pixelation will be happen.

=> now come to the PNG (take photoshop) whenever you export your asset to something like png and jpg. your vector doesnt remain same and it's characteristic get converted from points to pixel so now all your artwork will be converted to pixel(smallest possible square of color) and will get assigned to some DPI ( mostly 72).

=> now the reason i explained both term is because when you convert your vector to raster(PNG and JPG etc) it only do transformation to pixel level and when your artwork contains gap like 0.24545 pixels then it renders 1 blank pixel because subpixel transformation isn't possible in raster images. look down below image to understand more.

==> It seems like no gap at all in illustrator (there is very slight gap) but hardly visible on 6400% zoom)

enter image description here

==> but when it exported in pixels it shows 1 pixel transparent line. so to avoid it you have to merge shapes as much as possible. i use Shapebuilder tool (Shift+M) and avoid using cross lines if you don't wanna merge. as long as there is straight line gaps (horizontal and vertical ) there shouldn't be any problem.

enter image description here

Hope this helps!

TLDR: Just use as many as merged shapes. use any methods to merge shapes and it'll turn out in good result.

  • 1
    It is actually a bug, it is a deep entrenched bug. But a bug nonetheless. It even has a name the white line you see is a conflation artifact, because it conflates coverage with alpha blending. But that should not be done! Common to see, even more common in classrooms across the world. It is as if computer scientist all around the world have decided to teach people to make this bug on purpose, kind of bug. There is no need for the bug to exist. – joojaa Jun 17 at 5:50
  • 1
    @Igor just select two colliding shapes. in your case light green lines . and press <kbd>Shift+M</kbd> then drag your one shape into another. it quite very easy :D youtube.com/watch?v=SJaeqJgIDO4 watch this video XD – Design Phoenix Jun 18 at 3:03
  • 1
    @Igor OOps! it's not shape builder mistake. basically upon merging the shape builder tool with inherit active foreground color of illustrator so that means when you will merge shape the new shape will have color of your active foreground so to avoid it only select the shapes which you want to merge. in your chase. select only two green lines and upon merging it the filler color will also green :D – Design Phoenix Jun 19 at 3:09
  • 1
    @Design Phoenix All right! Soon we will try what you said, and we will return in comments! Thank you again :) – Igor Jun 19 at 3:17
  • 1
    @Design Phoenix It's works like a boss! Note: Placing a vector behind junction also helps solve the problem when exporting. – Igor Jun 24 at 18:42

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.