Share via


How to change XAML image to SVG Image format

Question

Thursday, January 21, 2016 5:23 AM

Hi,

  I can find numerous tools and code samples libraries in order to facilitate SVG to XAML. But i have XAML images that to be converted into SVG format. Is it possible? Any tools is doing that please suggest me. If any samples are available that would be even great. I did lots of googling i am not able to find any solution related to this.

Any help will be greatly appreciated.

Regards

Harsha D

Harsha Bhat

All replies (7)

Tuesday, January 26, 2016 9:37 AM âś…Answered

Hi Kristin,

    I had done my research on inkscape because i am using it for long time as my svg canvas. There are 2 problems with inkscape

1. If i open/load xaml image in inkscape it misses all color information and misses some group information. transformation gets distorted.

2. By using inkscape command line arguments there is no way to save it as svg i can only export it as png.

Regards

Harsha D

Harsha Bhat

@Harsha

So from your test, looks there is no way to convert Xaml to SVG. Per my understanding, Since Scalable Vector Graphics (SVG) file is an XML-based vector image format for two-dimensional graphics with support for interactivity and animation. But Xaml file is design UI but not for vector graphics.

So if convert xaml to svg, they will meet some limitation.

In a summary, this is by design.

Best regards,

Kristin

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Thursday, January 21, 2016 5:25 AM

XAML is used heavily by WPF.

http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wpf


Thursday, January 21, 2016 6:02 AM

Hi,

Yeah i know but i need to support both SVG and xaml and i have only xaml data with me so conversion is inevitable. 

Regards

Harsha D

Harsha Bhat


Friday, January 22, 2016 6:30 AM

Hi Harsha Bhat,

Yes, as you said, there are many ways support change SVG to XAML. But XAML to SVG is never heard.

After some search, Inkscape (an SVG editor) has limited support for XAML.

I haven't checked that, please try to export the xaml from Inkscape

Best regards,

Kristin

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Friday, January 22, 2016 9:18 PM

Hi,

How about this tool:

https://xamlimageconverter.codeplex.com/

it says: "A tool for ASP.NET to convert XAML, SVG and Photoshop files to images, pdf, animated gifs and html image maps.".

Rgds MM

PS: Please mark as answer if helpful. Thanks!
Blog: http://www.manuelmeyer.net
Twitter: https://twitter.com/manumeyer1


Monday, January 25, 2016 3:27 AM

Hi Kristin,

    I had done my research on inkscape because i am using it for long time as my svg canvas. There are 2 problems with inkscape

1. If i open/load xaml image in inkscape it misses all color information and misses some group information. transformation gets distorted.

2. By using inkscape command line arguments there is no way to save it as svg i can only export it as png.

Regards

Harsha D

Harsha Bhat


Monday, January 25, 2016 3:28 AM

Hi Manuel,

  The post you have referred i had already gone through. It takes SVG as an input but i needed to convert XAML image to SVG. 

Regards

Harsha D

Harsha Bhat