[solved] SVG issues with Chrome and IE

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.
moriartynz
Posts: 2
Joined: Mon Apr 25, 2016 12:17 am

[solved] SVG issues with Chrome and IE

Postby moriartynz » Mon Apr 25, 2016 12:27 am

Hi people,

I am not sure if this is a software issue or just an incompatibility issue. I attach my Inkscape file that illustrates the problem. I tried to create some purple smoke and I thought it came out well in Inksacpe. When I open this in Chrome, I get a blank screen (does not render at all). When opening it in IE, I get a render of the smoke, but it looks different from the way it appears in Inkscape.

Is this a software issue? Even if it is, is there some way I can render the smoke reliably in Chrome and IE without resorting to PNG exports?

Many thanks for any replies
Regards
Mark
Attachments
SmokeIE.PNG
SmokeIE.PNG (35.99 KiB) Viewed 4260 times
smoke.svg
(21.05 KiB) Downloaded 313 times

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

Re: SVG issues with Chrome and IE

Postby Lazur » Mon Apr 25, 2016 12:44 am

Hi.

Unfortunately browsers don't render filters fluently. It's not an inkscape issue.
Like, openclipart uses inkscape to render thumbnails for inkscape generated svg-s too.

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: SVG issues with Chrome and IE

Postby hulf2012 » Mon Apr 25, 2016 8:45 am

Greetings

First, thanks for share your sample

I've see your file's XML/SVG code. Your path had a transform attribute. I managed to apply it. After that, I cleaned your code, ... and deleted the other layers too :roll: . After that, I saved as an Optimized SVG on Inkscape.

- Now that cleaned file can be seen in Firefox and Chrome, here in my Ubuntu System. I don't have IE installed (maybe with Wine? maybe a Virtual machine??) so I can't test it.

- I note a difference in how is rendered in Firefox and Chrome, but maybe it's not critical for your objectives. I'm attaching the file
smokeo.svg
(4.02 KiB) Downloaded 325 times
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: SVG issues with Chrome and IE

Postby v1nce » Mon Apr 25, 2016 8:56 am

It looks like chrome (chromium 49) does not support the morphology filter so I removed it.
I renamed some stages of the filter that use the same filter-primitive-reference. This is allowed by the spec but this is really a BAD BAD BAD idea and IMHO as inkscape doesn' handle them well it should use unique IDs instead
Attachments
dessin.svg
(8.07 KiB) Downloaded 344 times

moriartynz
Posts: 2
Joined: Mon Apr 25, 2016 12:17 am

Re: SVG issues with Chrome and IE

Postby moriartynz » Mon Apr 25, 2016 4:02 pm

Thanks so much for the replies. Seeing them makes me realise just how lightly I am scratching the surface when it comes to understanding SVGs and Inkscape. I humbly bow to the Gurus in awe and admiration.

Both the files from hulf2012 and v1nce render in Chrome and in IE. I do prefer the rendering of dessin.svg to the one in smokeo.svg for my purposes as it gets closest to the dragon's tail effect at the top I get in Inkscape.

Thanks again and thanks for your assistance. I clearly need to understand more about the XML code of things behind the Inkscape SVG file architecture to be able to make effective use of Inkscape as a general SVG creation tool.


Return to “Discuss Software Issues”