problems with borders

Post questions on how to use or achieve an effect in Inkscape.
crox
Posts: 2
Joined: Sun Aug 14, 2011 6:34 am

problems with borders

Postby crox » Sun Aug 14, 2011 6:48 am

Hello!

I'm fairly new to inkscape and I already have a huge problem - I'm trying to draw a scheme for my seminar and it looks ok in inscape (.svg) but when I save it in .eps it goes all strange. Little blue circles which have no borders in svg misteriously get them in eps. These borders seem quite random and remain when I print the figure.
Svg file: http://imgh.us/adhezija.svg

Any ideas on what to do?

thanks,
c

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

Re: problems with borders

Postby brynn » Sun Aug 14, 2011 7:57 am

Image
Welcome to InkscapeForum!

Hhhm, I've looked at your file, and all the blue circles have a Stroke. Based on your description, this doesn't seem to fit. Because you said in your original SVG, there were no "borders" and in the EPS, the borders are random. So I'm not sure. Is it possible that you submitted the wrong file? Or otherwise, can you clarify the problem?

Thanks :D

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

Re: problems with borders

Postby ~suv » Sun Aug 14, 2011 2:33 pm

Note: All your circles do have a black solid stroke (though it appears very small because the circles have been scaled down - themselves as well as the nested groups they are inside).

Underlying issue: PostScript does not support transparency (or reduced opacity) in fill or stroke colors

    When converting your sample SVG file to EPS, several [1] of the small circles with the light-gray fill get rasterized into a bitmap image (because the fill color is not actually a solid gray part partially transparent black). This happens because PostScript does not support transparency for vector objects, and Inkscape tries keep to appearance of the EPS file as close as possible to the rendered SVG file on-canvas (see also here). Note that earlier versions of Inkscape (0.46) simply ignored the transparency and would have rendered the circles in full black in exported PostScript files.

    Depending on your EPS viewer and printer, the edges of the embedded fallback images might be visible. OTOH the minimal stroke width for PostScript files to render seems to be larger then in Inkscape, causing the not-rasterized circles to have a larger visible stroke than those in the rasterized fallback images.

Try this:
  1. select all circles with a partially transparent fill and change the fill color to a solid gray with A = 255 before exporting to EPS (see attached edited SVG file).
  2. If you don't want the circles to have a black stroke, remove it (see lower example in the attached SVG file).
adhezija-no-transp.svgz
(95.55 KiB) Downloaded 141 times


[1] What's odd with the circles in your original example: only some are rasterized, others appear to get automatically flattened (semi-transparent black fill converted into a solid gray equivalent) - I don't know why this happens, just that the result is the same with 0.47 (cairo 1.8.8), 0.48.1 (cairo 1.10.2) and a current build of the development branch (cairo 1.10.2))

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

Re: problems with borders

Postby brynn » Sun Aug 14, 2011 8:09 pm

~suv, you are simply brilliant!
I probably would have gotten further with my investigation, if I had the means to actually display an EPS file.

Off topic:
~suv, can you recommend a viewer which displays a wide variety of graphic formats? (I'm on Windows.) Or do most of the vector formats require the program which creates them, to be able to display them?

crox
Posts: 2
Joined: Sun Aug 14, 2011 6:34 am

Re: problems with borders

Postby crox » Mon Aug 22, 2011 4:54 am

Thanks for fast answers, I wasn't able to answer till now. Sorry.

So, I saw that I had really tiny border, that I did'n see the first time. I removed it and everything was ok. I was obviously blind.:)

thanks for help, again:)


Return to “Help with using Inkscape”