Applying a texture leaves dividing lines

Post questions on how to use or achieve an effect in Inkscape.
daviddoria
Posts: 56
Joined: Fri Oct 03, 2008 7:57 am

Applying a texture leaves dividing lines

Postby daviddoria » Sat Mar 10, 2012 11:58 pm

When I apply a custom texture to an object, there are dividing lines between where the texture is tiled. Here is a screenshot:

daviddoria.com/Uploads/bricks.jpg

(here is the original file: daviddoria.com/Uploads/bricks.svg )

The lines are visible when I export to a pdf as well. Strangely, when I view the SVG directly in chrome, the lines are not visible.

Is there anyway to make the lines disappear?

Thanks,

David

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Applying a texture leaves dividing lines

Postby brynn » Sun Mar 11, 2012 6:59 am

Hi David,
That's a known issue. In this topic is a link to an Inkscape filter which will help to obscure the lines viewtopic.php?f=5&t=9034&p=33279&hilit=stitch#p32882

It may be that Chrome currently has better support for displaying SVG than other browsers. But when I view the SVG with Firefox, I don't see the lines either. In any case, Inkscape's new renderer, due with version 0.49 should eliminate this problem.

daviddoria
Posts: 56
Joined: Fri Oct 03, 2008 7:57 am

Re: Applying a texture leaves dividing lines

Postby daviddoria » Mon Mar 12, 2012 11:19 am

I compiled inkscape trunk, and the issue seems to still be there. Were you saying to just wait until the release of 4.9? Or is it actually still being worked on?

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Applying a texture leaves dividing lines

Postby brynn » Mon Mar 12, 2012 5:06 pm

Um....I'm not sure how to answer that. I don't understand things very well, on the development side. The new renderer is due in a stable release with 0.49. It IS currently under development, but I don't know if that particular part is included in the public development version. Perhaps not. It's possible that it's not stable enough to be joined with the rest of the program (yet), and that work is still only "behind the scene". Often one can "get a jump" on new features by using a development version, but I think that it might not be quite ready for even the public development version yet. (That's my very non-technical description of my understanding.)

Eventually, I suppose, it will be in the publicly released development version. So you can either wait until then (which I couldn't predict -- the stable 0.49 is at least a year away, to my understanding) or use the filter that I referenced above. I guess I'm not clear what your ultimate use will be for the image. But it looks like it will be displayed properly in at least 2 browsers. As for PDF, I'm not sure. What were you using to display the PDF? Maybe some viewers will display without the anomaly?

Or....I'm not sure if the Inkscape conversion to PDF is part of the problem. I know the problem is with the Inkscape display, but somehow these 2 browsers can display it properly. I don't know if the conversion process (to PDF) is capable correcting the problem (like the browsers apparently do)(even though I understand the browsers aren't converting the file format). Anyway, what I'm getting at, is if your end goal is PDF, maybe you could find some other way to convert the SVG to PDF which would eliminate the problem?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Applying a texture leaves dividing lines

Postby ~suv » Tue Mar 13, 2012 3:47 am

daviddoria wrote:I compiled inkscape trunk, and the issue seems to still be there. Were you saying to just wait until the release of 4.9? Or is it actually still being worked on?

Did you actually run the correct binary (trunk, not current stable from the default location)? See attached screenshots - for me, current trunk does not render gaps between the tiles of a pattern fill.

Attached screenshots are done on OS X 10.7.2, using the provided example file - bricks.svg - at the same zoom level, without any edits to the file.
Original screenshot (Inkscape 0.48.2 on Windows): bricks.jpg
Attachments
daivddoria-bricks-0.48.2-osx.png
Inkscape 0.48.2, file: bricks.svg (unedited)
daivddoria-bricks-0.48.2-osx.png (126.87 KiB) Viewed 1834 times
daivddoria-bricks-trunk-r11072-osx.png
Inkscape 0.48+devel r11072, file: bricks.svg (unedited)
daivddoria-bricks-trunk-r11072-osx.png (159.13 KiB) Viewed 1834 times
Last edited by ~suv on Tue Mar 13, 2012 3:56 am, edited 1 time in total.

daviddoria
Posts: 56
Joined: Fri Oct 03, 2008 7:57 am

Re: Applying a texture leaves dividing lines

Postby daviddoria » Tue Mar 13, 2012 3:55 am

Ah, you're right. I actually didn't open the file in the new inkscape, but rather used a command line command to use the new inkscape to convert the file to a pdf (which is my actual use case).

I still see the lines in the output pdf with okular, but they are gone in Acrobat Reader. Very strange... but I guess it is not an inkscape problem anymore?

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Applying a texture leaves dividing lines

Postby ~suv » Tue Mar 13, 2012 4:03 am

daviddoria wrote:I still see the lines in the output pdf with okular, but they are gone in Acrobat Reader. Very strange... but I guess it is not an inkscape problem anymore?

Probably an issue in (various) PDF viewers with pattern fills: in my quick tests
  • Apple's Preview.app v5.5.1 renders it ok
  • gv v3.7.3.90 (using Ghostscript 9.05) renders it ok
  • Evince v2.30.3 doesn't render the pattern-filled object at all (malloc error)
  • Xpdf v3.02pl5 renders with gaps between the pattern tiles
I don't have Adobe Reader installed to compare.


Return to “Help with using Inkscape”