Get gaps when you use patterns? Here's a work-around.

Post questions on how to use or achieve an effect in Inkscape.
DannyKing
Posts: 122
Joined: Sat Jan 26, 2008 2:58 am
Location: UK
Contact:

Get gaps when you use patterns? Here's a work-around.

Postby DannyKing » Thu Sep 11, 2008 5:00 am

Firstly, if anyone can work out how to fix this properly please enlighten me! This is hands down the most annoying bug for me in Inkscape (and I have no idea how to fix the codebase)

If you use patterns you will have come across the gaps that appear as horizontal or vertical lines sometimes. You might be lucky with some patterns if you zoom to a lower level, but I've found that image exports still render the gaps. A quick and dirty way to get a just acceptable result is to create your shape the size that you'd like it, apply the pattern and then duplicate it. Then, move the new pattern a few pixels left & up. This will sort of cover up the lines.

I hope someone else can provide us with a better fix!
Image

jude
Posts: 37
Joined: Thu Jun 05, 2008 1:08 am

Re: Get gaps when you use patterns? Here's a work-around.

Postby jude » Thu Sep 11, 2008 7:25 pm

Someone was very helpful and left a comment on my blog about this when I ran into the same problem.
To quote him:
You can work around the problem by editing the SVG markup for your pattern using the editor under EDIT > XML editor. It may be intimidating at first but what you’re looking for is a branch that’s named something like “svg:pattern”.

If you select this and then look at the left side of the window, you’ll see a set of attributes and values associated with your pattern. The items of interest here are “width” and “height”. These values equate to the bounding box of your pattern. If you reduce them slightly, you can eliminate the seams.


Return to “Help with using Inkscape”