xaml incorrect or bad export

Bug #1750220 reported by Aron+Evans
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Confirmed
Undecided
Unassigned

Bug Description

I use Windows 7 64bit HomeEdition, Inkscape 0.92.2 (5c3e80d, 2017-08-06)

I export graphics in to xaml for wpf application. I use rectangle or paths with gradient or radialgradient fills. Problem is, inkscape xaml exporter make lot of color export instead how many color is used. Another issue is, exported graphics not show fill if it is radial gradient due there is no gradientStops color (it is not exported).

And with some reason, in exported xaml, gradient is not allways in the position as original svg, if object is used instead path. If this happens, only convert object in to path resolve it.

Here is code:
svg:
(because this messenger / bugtracker don't have code tags, I give link here, to the forum where are all codes. You can easily see the problem from them.)
https://forum.inkscapecommunity.com/index.php?topic=987.0

saved as xaml (with silver light compatibility):
https://forum.inkscapecommunity.com/index.php?topic=987.0

I have to allways correct export with
1. convert object to path
2. use no swatches
3. delete gradients and extract its gradient stops in to radialGradient
4. delete all others colors, gradients etc.. which are not used
Update: (it is not in forum post)
5. need to add GradientOrigin="0,0" in to RadialGradient manualy, if I exporting from Optimized Svg. If there is no GradientOrigin, then in Blend, gradient looks very strange. After add this code, gradient looks like same as in Inkscape

another issue is when objects are paths, inported graphics have strange object bounding - it is looks like it have very large size, but graphics stretched in to viewbox (if I move cursor in Blend in to object, it show some object bounding). If object are not convert in to path, object bounding looks normal - same as visible graphics.

btw it doesn't matter if silverlight is checked or not, I allways must do this steps

Revision history for this message
Aron+Evans (aron++777) wrote :

Here is svg file

Revision history for this message
Aron+Evans (aron++777) wrote :

Here is xaml file

Revision history for this message
Alvin Penner (apenner) wrote :

radial gradient problem confirmed on Windows 10, Inkscape 0.92+devel (9d6b0e8, 2018-02-18)

attached is the result I get from Xaml export.

Changed in inkscape:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.