xaml incorrect or bad export
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:/
saved as xaml (with silver light compatibility):
https:/
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=
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
Here is svg file