Forum: Inkscape Inkscape problem or broken svg ?

Posted by Hadmut Danisch (Guest)
on 2010-07-01 17:19
(Received via mailing list)
Hi,

have a look at http://de.wikibooks.org/wiki/SVG , there's an embedded
SVG graphics. When I dowload this svg from

http://upload.wikimedia.org/wikibooks/de/7/72/SVG_Buch01.svg

I can use it with rsvg, but not with inkscape. inkscape just shows a
completely empty canvas. (using inkscape 0.47.0 from ubuntu 10.04).

Is that a problem of inkscape or a problem of the svg file?


regards
Hadmut
Posted by Jozef Legény (Guest)
on 2010-07-01 17:52
(Received via mailing list)
Reading the file in Google Chrome (just the file, not embedded in the
site) leads to an error message :

This page contains the following errors:
error on line 2 at column 2: Char 0x0 out of allowed range

It then renders the image up to the error, resulting in a blank image.
Embedding the file in a page works fine (maybe due to some error
tolerance).

The problem is however in filters, not with the file, actually. When
you 'select all' in inkscape you will find that there is a filtered
group in it. Repeating ungroup and remove filters operations will lead
to the (somewhat modified) original image
Posted by imigital (Guest)
on 2010-07-02 23:23
(Received via mailing list)
If your familiar with filters, open the svg in Inkscape.

Go to the filter editor and adjust the filter dimensions to something 
Inkscape likes for all filters. It will become visible.

-offsets to 0.1
-height & width to values from 1.2 up to a size that filters the whole 
object (start with 1.2)

Also, depending on how grouping and filters are applied, when you 
"un-group" you may lose some filtering and they will have to be 
re-applied. Sometimes it is hard to reproduce the same effect.
good luck

imigital
Posted by Jasper van de Gronde (Guest)
on 2010-07-03 12:38
(Received via mailing list)
Hadmut Danisch wrote:
> Is that a problem of inkscape or a problem of the svg file?
It could definitely be an Inkscape problem, if you can file a bug report
for this that would be great:
http://bugs.launchpad.net/inkscape/+filebug
(The more specific the better.)
Posted by Hadmut Danisch (Guest)
on 2010-07-16 10:38
(Received via mailing list)
On Sat, Jul 03, 2010 at 12:36:58PM +0200, Jasper van de Gronde wrote:
>
> It could definitely be an Inkscape problem, if you can file a bug report 
> for this that would be great:
> http://bugs.launchpad.net/inkscape/+filebug
> (The more specific the better.)


I meanwhile found what cause the (main) problem. In the original svg I
had to replace

<filter id="LichtUndSchatten" filterUnits="userSpaceOnUse" x="0" y="150" 
width="1000" height="700">

with

<filter id="LichtUndSchatten" filterUnits="objectBoundingBox" x="-50%" 
y="-50%" width="200%" height="200%">


inkscape then renders the image. However, the Ellipse still looks much 
worse compared with what rsvg generates.

I am still struggling with the fact, that inkscape recently changed the 
way it applies specular filters, I had to change all my svg files and 
modify some parameters. Comparing the output of inkscape and rsvg of 
this particular svg file shows that something goes wrong over here.


regards
Hadmut
Posted by Jasper van de Gronde (Guest)
on 2010-07-16 10:51
(Received via mailing list)
Hadmut Danisch wrote:
> <filter id="LichtUndSchatten" filterUnits="userSpaceOnUse" x="0" y="150" width="1000" height="700">
> 
> with 
> 
> <filter id="LichtUndSchatten" filterUnits="objectBoundingBox" x="-50%" y="-50%" width="200%" height="200%">

Ah! This makes some sense, Inkscape did (and probably does) have some
problems with userSpaceOnUse.

> inkscape then renders the image. However, the Ellipse still looks much worse compared with what rsvg generates. 
> 
> I am still struggling with the fact, that inkscape recently changed the way it applies specular filters, I had to change all my svg files and modify some parameters. Comparing the output of inkscape and rsvg of this particular svg file shows that something goes wrong over here.

If you can make a specific test case out of it that would be increadibly
valuable. If you do, be sure to file a bug report (link still quoted
above) and attach the test case. (And if you want you can mail me that
you created it so I can have a look.)
Posted by Tavmjong Bah (Guest)
on 2010-07-16 12:04
(Received via mailing list)
On Fri, 2010-07-16 at 10:50 +0200, Jasper van de Gronde wrote:
> Hadmut Danisch wrote:

> problems with userSpaceOnUse.
I've been investigating Inkscape's implementation of the feImage filter
primitive. It has serious problems in using filterUnits as well as
primitiveUnits. Other filter primitives probably have similar problems.
The SVG spec is quite confusing in this area so this isn't too
surprising (I will be working on clarifying the spec this week). Here's
a new test that shows how broken Inkscape's implementation is:

http://dev.w3.org/SVG/profiles/1.1F2/test/svg/filters-image-03-f.svg

          Tav
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.