Inkscape.org
Beginners' Questions Aliasing problem
  1. #1
    gtmanure gtmanure @gtmanure

    Hello,
    I'm an uber fan of inkscape, which inspires me a lot. Only I am confronted with a problem that seems strange to me: when I assemble several squares of the same color for example, and that I export it with aliasing, we can see on the png file the delimitations between the squares. This issue is resolved when I disable aliasing. Only I would like to be able to use aliasing, is there a solution to my problem, something I'm missing?
    Thank you.

  2. #2
    Polygon Polygon @Polygonโš–๐ŸŒถ

    Just 100% vertical+horizontal lines can be aligned pixel perfect to show no gaps. This is a widely spread issue in the SVG editor world and afaik just Adobe uses some specialized AA-algorithm (Supersampling) which is immune to this issue. If itยดs just for PNG export you can double or triple the objects which will minimize anti-aliasing or try to overlap the objects instead of aligning side-by-side.

  3. #3
    gtmanure gtmanure @gtmanure

    Hello Polygon, thank you for your reply.

    So I'm not crazy... It's still surprising that there isn't a definitive solution for something so fundamental, for me it's a big problem for the kind of visual that I do, which is based on the assembly of simple forms. I don't want to have any demarcation between the shapes so they can visually merge. The only solution left to me then is to export it without aliasing, by supersampling the files myself. Is there a risk in using files that are aliasing-free? I use it for example for music covers, which requires files of 3000x3000 pixels, is there a risk that on the display there may be a pixel that clashes?

  4. #4
    gtmanure gtmanure @gtmanure

    I'm not a developer, but wouldn't it be enough to have a line of code that exports with twice the requested pixel value without aliasing, then reduces the file by twoย with aliasing?

  5. #5
    Polygon Polygon @Polygonโš–๐ŸŒถ

    You can adjust the output size then by doubling the dpi valueat the PNG export dialogย and shrink the result with GIMP for instance. Inkscape is by far not the only app struggling with AA.

  6. #6
    Tyler Durden Tyler Durden @TylerDurdenโš–

    It's common to use trapping and overprint...

  7. #7
    gtmanure gtmanure @gtmanure

    thank you all for this info. Can I do the equivalent with inkscape without fear of losing quality? Export it a first time with double the resolution without aliasing, then import the resulting png in inkscape and re-export it with half the resolution and with aliasing?

  8. #8
    gtmanure gtmanure @gtmanure

    Hello,

    I tested the oversampling technique. If I go through inkscape, the aliasing filter is even more disgusting than if I had done it directly. If I go through Gimp, it doesn't bring anything in terms of clarity, and I have the impression that the color rendering is slightly altered...
    Is there a risk of using exported files without aliasing? Can we envisage a scenario where a pixel would stand out like a hair in the soup?

    ย 

    Thanks, again.