Snapping nodes creates a 1px line in between.
Snapping nodes creates a 1px line in between.
Imagine I'm making two rectangles, one blue and one red. And I want them to meet. So I use the nodes menu and the drag the corner of one rectangle to snap to the corner of the other rectangle. Then I'll do the same with the other corner. At first it looks like the shapes is seamed together. But at a closer look there's a 1px line of background between them. If I for example put a green box behind them, it shines through tiny bit between the rectangles. Why is this?
Re: Snapping nodes creates a 1px line in between.
It's probably due to "anti-aliasing" - which just means that, if the shapes Inkscape draws don't lie exactly on the pixel boundaries of the output device, it compensates by drawing the outer pixels slightly transparent. Imagine a line drawn at an angle - if Inkscape draws a "hard" colour in each pixel it crosses, you'll see a stepped shape; so instead it anti-aliases it by drawing pixels whose transparency corresponds to the amount of the line that crosses into each cell.
Since 0.91 you can turn off anti-aliasing in the document properties dialog.
If you search the forum you'll find lots of similar questions (and answers), which may help you to manage the issue in other ways.
Since 0.91 you can turn off anti-aliasing in the document properties dialog.
If you search the forum you'll find lots of similar questions (and answers), which may help you to manage the issue in other ways.
Re: Snapping nodes creates a 1px line in between.
Because anti-aliasing means you will have semi-transparent "subpixels", the edges fading to 0 opacity, AND
that those pixels are composited as they were simply put one atop another instead of
compositing the alpha values to full opaque pixels.
Like it can be achieved to composite the objects together without any rendering gaps in between, although there is not an automated method to pull it off nor would it convert well to a printable pdf so I suggest overlapping the objects whenever possible.
These images were made that way.
Check this one in inkscape how objects are arranged for the concept.
that those pixels are composited as they were simply put one atop another instead of
compositing the alpha values to full opaque pixels.
Like it can be achieved to composite the objects together without any rendering gaps in between, although there is not an automated method to pull it off nor would it convert well to a printable pdf so I suggest overlapping the objects whenever possible.
These images were made that way.
Check this one in inkscape how objects are arranged for the concept.
Re: Snapping nodes creates a 1px line in between.
Thanks! Found more information now that I know what to search for! Is this seen as a problem by professionals in vector graphics? It seems like much extra work to extend all the objects behind further when its convenient to just snap them to get them exactly right. Tried it but found it hard to get all the angles and other stuff perfect.
Re: Snapping nodes creates a 1px line in between.
My guess would be a simple "additive alpha" "compositing group mode" could solve it. As that filtered example shows above, how it can be simulated manually.
Although the problem is general with anti-aliasing, I know no such developed solution.
Inkscape relies on svg, and as svg 2's development takes so long the workgroup doesn't seems very innovative. Still better than eps and pdf which has no support for filters&blending modes.
But don't worry, an 1 px gap is not noticeable at a reasonably high resolution ie. when printed.
Although the problem is general with anti-aliasing, I know no such developed solution.
Inkscape relies on svg, and as svg 2's development takes so long the workgroup doesn't seems very innovative. Still better than eps and pdf which has no support for filters&blending modes.
But don't worry, an 1 px gap is not noticeable at a reasonably high resolution ie. when printed.
Re: Snapping nodes creates a 1px line in between.
Lazur wrote:But don't worry, an 1 px gap is not noticeable at a reasonably high resolution ie. when printed.
Thanks for your answers!
As a photographer och mainly using Photoshop I've become way to much of a pixel peeper
