File not rendered properly ?

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
skan
Posts: 3
Joined: Sun Feb 05, 2017 5:07 am

File not rendered properly ?

Postby skan » Sun Feb 05, 2017 5:15 am

Hello.

Some files aren't rendered properly.

For example try this one:
https://es.wikipedia.org/wiki/Archivo:Barrios_del_Distrito_Centro_(Madrid).svg

rendered as

Image

by chrome or by other SVG viewers but rendered as

Image

by inkview and inkscape.
As you can see in the area marked by the arrow there is a break of the line, sometimes is bigger.

Or even like this, depending on the zoom:
Image

Is it a problem with Inkscape or is the file broken?
Anyway other programs show it properly.

Regards

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: File not rendered properly ?

Postby Lazur » Sun Feb 05, 2017 5:44 am

Hi.

Rendering is off because the file is off.
If you look at the parts with the error (7 paths have the same issue in the file) it occures at nodes connecting a linear segment with a curved one -where, the curved segment's handle is pulled in the opposite drection just a slight bit.

By selecting all nodes and setting segments linear it will render as expected.

skan
Posts: 3
Joined: Sun Feb 05, 2017 5:07 am

Re: File not rendered properly ?

Postby skan » Sun Feb 05, 2017 12:43 pm

Then why I can view it without problems from Chrome?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: File not rendered properly ?

Postby Lazur » Sun Feb 05, 2017 1:01 pm

Because chrome uses a different renderer.
It well may be a cairo issue used in inkscape that the "overlapping" path segment part is not rendered although I do think it's not an ordinary drawing.

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

Re: File not rendered properly ?

Postby brynn » Sun Feb 05, 2017 8:36 pm

Support for SVG differs across all different kinds of viewer and browsers. Some features may displayed on one browser or viewer but not in another. That's why the widespread advice is still to use raster images for web display, if your goal is to have the image visible to the largest number of visitors possible.

However, there are all kinds of different reasons people might have, for using SVG images for their unique purpose. For example, certain types of animation can be achieved via SVG (XML), so if you wanted to have an interactive webpage, you just have to accept the fact that not everyone will be able to see it. Or else you might have to put special code into the webpage, that will allow people to see it, no matter which browser they might be using.

From what I've heard, Chrome seems to be the best for displaying the most SVG features.

skan
Posts: 3
Joined: Sun Feb 05, 2017 5:07 am

Re: File not rendered properly ?

Postby skan » Mon Feb 06, 2017 3:31 am

brynn wrote:Support for SVG differs across all different kinds of viewer and browsers. Some features may displayed on one browser or viewer but not in another. That's why the widespread advice is still to use raster images for web display, if your goal is to have the image visible to the largest number of visitors possible.


My goal is to use svg files embedded in pdf documents, created with Latex or maybe Indesign or similar tools.
I just was checking how different svg tools performed with some svg samples.


Return to “Discuss Software Issues”