Inkscape.org
Beyond the Basics Boolean operations leaving annoying edges
  1. #1
    Lost Birds Lost Birds @lost_birds

    One of my biggest problems with Inkscape is when I want to fit an object into another one, using in this case "Difference", I get left with an annoying edge that can be seen even when I render and export my file into a PNG.  ðŸ˜¤

    I've found a way to solve this problem when I'm snapping objects without a background. I can unify objects together, lower them at the bottom and then make it single color background so I'm not left with pixels of empty space which can be seen. However, when I'm doing the action on an object that's on top of another object, I always get left with an annoying edge which I can't hide. When it's a situation where I can mask it by making it go farther than the outline because it's the same color, it's fine.

    How do you deal with this? I need advice. If my explanation/question is unclear, let me know which part is.

     

    I'll pin a picture as an example.

    4
  2. #2
    Fox Fox @foxfoxfox

    Man I've always hated this too. Interested in hearing some real solutions

  3. #3
    brynn brynn @brynn

    I don't see any problems in the image you shared.  Although I suspect you're talking about a small but noticable gap between objects which are perfectly aligned, side by side, but you can still see the background between them.  Right?

    It's caused by something called "anti-aliasing" which is a partial transparency which is applied to almost everything in Inkscape, and most other graphics programs.  It's what creates all those wonderfully smooth edges in vector graphics.

    The only true solution is to slightly overlap the objects.  This faq covers all the possible ways to handle it, depending on the kind of objects you're working with.

    https://inkscape.org/learn/faq/#theres-seam-or-artifact-between-adjacent-objects-sharing-same-border-or-between-patterns

  4. #4
    Flamingolady Flamingolady @flamingolady🦩⚖

    I hate this too.  I now try to use path>offset - usually just once (I 'think' you can adjust the size of the offset steps under edit>preferences).  What would be really nice is if we could do offset on one portion of an object (e.g. one side), or highlight just the nodes you want to be offset. Sometimes adding in a stroke of the same color will fill it in.  Just depends on the design of course.

  5. #5
    molst molst @molst

    Hi, I'm experiencing a very similar problem right now, but with a little twist that makes this bug a little bit more serious because this is not a corner case anymore.

    I'm having a shape (it happens to be quite rectangular with straight lines) and put it behind a slightly round object of the same color so that the round border of the topmost object goes right over the bottom object. Ie. the objects are overlapping, just as recommended on the page referenced above. The background is fully transparent. It looks as expected in the edit view (the border is all the same color as the background and thus invisible), but when exporting to png (both version 0.92.4 and beta2 of today), I get a dashed line along the crossing border (that should be completely covered by the topmost object). I suppose I could unify the paths to get rid of the problem, but would like to have my components separated easily be able to continue working on the image later.

  6. #6
    molst molst @molst

    WTF, not even union got rid of the dashes.. 😬

  7. #7
    molst molst @molst

    Finally, the only thing that helped was disabling anti alias in the png export dialog.

  8. #8
    brynn brynn @brynn

    Hard to know what might be happening without seeing something - screenshots, SVG file, etc.

  9. #9
    molst molst @molst

    Sorry, I don't have it readily available at the moment. I will supply it when I run into the problem again.

  10. #10
    molst molst @molst

    Ah, here I've got it. I've attached the svg file and the exported png with antialias used.

    Please note the dashed lines near the rudders, which shouldn't be there. Disabling AA removes them.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Boolean operations leaving annoying edges