# SVG support?

**URL:** <https://forum.xojo.com/t/svg-support/8693>\
**Category:** General\
**Created:** [June 9, 2013, 8:12am UTC](https://forum.xojo.com/t/svg-support/8693 "2013-06-09T08:12:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_von\_Siebenthal](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/c67d28/32.png) [@Alex\_von\_Siebenthal](https://forum.xojo.com/u/Alex_von_Siebenthal)\
**Post date:** [June 9, 2013, 8:12am UTC](https://forum.xojo.com/t/svg-support/8693/1 "2013-06-09T08:12:31Z")

</div>

To what extent is the SVG file format supported in desktop applications? Can’t find anything in the wiki.

---

<div class="post-metadata">

**Author:** ![Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/user_avatar/forum.xojo.com/eduardo_gutierrez_de_oliveira/32/264_2.png) [@Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/u/Eduardo_Gutierrez_de_Oliveira)\
**Post date:** [June 9, 2013, 11:00am UTC](https://forum.xojo.com/t/svg-support/8693/2 "2013-06-09T11:00:01Z")

</div>

SVG is not supported at all by Xojo for Desktop applications.

I wish it was, though.

---

<div class="post-metadata">

**Author:** ![Alex\_von\_Siebenthal](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/c67d28/32.png) [@Alex\_von\_Siebenthal](https://forum.xojo.com/u/Alex_von_Siebenthal)\
**Post date:** [June 9, 2013, 11:02am UTC](https://forum.xojo.com/t/svg-support/8693/3 "2013-06-09T11:02:44Z")

</div>

It’s an XML format. Should be possible to transform into Object2Ds - a question of time after all…

---

<div class="post-metadata">

**Author:** ![Sebastian\_Niesen](https://forum.xojo.com/user_avatar/forum.xojo.com/sebastian_niesen/32/201_2.png) [@Sebastian\_Niesen](https://forum.xojo.com/u/Sebastian_Niesen)\
**Post date:** [June 9, 2013, 2:56pm UTC](https://forum.xojo.com/t/svg-support/8693/4 "2013-06-09T14:56:40Z")

</div>

Christian Schmitz’ ImageMagick wrapper plugin may be a solution for you:

[http://www.mbsplugins.de/archive/2011-06-30/Tip\_of\_the\_day\_Render\_SVG\_with](http://www.mbsplugins.de/archive/2011-06-30/Tip_of_the_day_Render_SVG_with)

---

<div class="post-metadata">

**Author:** ![Alex\_von\_Siebenthal](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/c67d28/32.png) [@Alex\_von\_Siebenthal](https://forum.xojo.com/u/Alex_von_Siebenthal)\
**Post date:** [June 9, 2013, 3:01pm UTC](https://forum.xojo.com/t/svg-support/8693/5 "2013-06-09T15:01:10Z")

</div>

That’d be already a start, thanks for the hint. Even better was if it returned a Group2D object 🙂 That way one could manipulate the SVG

---

<div class="post-metadata">

**Author:** ![Sebastian\_Niesen](https://forum.xojo.com/user_avatar/forum.xojo.com/sebastian_niesen/32/201_2.png) [@Sebastian\_Niesen](https://forum.xojo.com/u/Sebastian_Niesen)\
**Post date:** [June 9, 2013, 3:03pm UTC](https://forum.xojo.com/t/svg-support/8693/6 "2013-06-09T15:03:50Z")

</div>

Take a look here: [http://www.monkeybreadsoftware.net/plugincontent-mbsrealstudiographicsmagickplugin.shtml](http://www.monkeybreadsoftware.net/plugincontent-mbsrealstudiographicsmagickplugin.shtml)

---

<div class="post-metadata">

**Author:** ![Sam\_Rowlands](https://forum.xojo.com/user_avatar/forum.xojo.com/sam_rowlands/32/265_2.png) [@Sam\_Rowlands](https://forum.xojo.com/u/Sam_Rowlands)\
**Post date:** [June 9, 2013, 3:48pm UTC](https://forum.xojo.com/t/svg-support/8693/7 "2013-06-09T15:48:48Z")

</div>

A long time ago in a galaxy far far away, I wrote some code to do just that… I can try to dig it out if you like, but I have no idea if it will even work. I do recall that I abandoned it because it easily led to app crashes…

Failing that, can you open SVG in Apple’s preview? If so I might have another solution for you instead (but not for Windows sorry).

---

<div class="post-metadata">

**Author:** ![Alex\_von\_Siebenthal](https://forum.xojo.com/letter_avatar_proxy/v4/letter/a/c67d28/32.png) [@Alex\_von\_Siebenthal](https://forum.xojo.com/u/Alex_von_Siebenthal)\
**Post date:** [June 9, 2013, 4:06pm UTC](https://forum.xojo.com/t/svg-support/8693/8 "2013-06-09T16:06:33Z")

</div>

[quote=12761:@Sam Rowlands]A long time ago in a galaxy far far away, I wrote some code to do just that… I can try to dig it out if you like, but I have no idea if it will even work. I do recall that I abandoned it because it easily led to app crashes…

Failing that, can you open SVG in Apple’s preview? If so I might have another solution for you instead (but not for Windows sorry).[/quote]

Yes please! I will try to dig into the SVG docs too…

Apple’s preview doesn’t open ans SVGs here ☹

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [June 30, 2014, 3:23am UTC](https://forum.xojo.com/t/svg-support/8693/9 "2014-06-30T03:23:35Z")

</div>

Xojo could implement a Picture.Open(“vector.svg”), then it could be loaded to the Picture.Objects (a Group2D) ready to be used.

---

<div class="post-metadata">

**Author:** ![Greg\_O\_Lone](https://forum.xojo.com/user_avatar/forum.xojo.com/greg_o_lone/32/49_2.png) [@Greg\_O\_Lone](https://forum.xojo.com/u/Greg_O_Lone)\
**Post date:** [June 30, 2014, 3:59am UTC](https://forum.xojo.com/t/svg-support/8693/10 "2014-06-30T03:59:09Z")

</div>

Safari opens SVG files.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [June 30, 2014, 4:21am UTC](https://forum.xojo.com/t/svg-support/8693/11 "2014-06-30T04:21:42Z")

</div>

Dim p as new Picture  
p.Safari(“vector.svg”) // Method not found. 🙂 - [Yes. It’s a joke]

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [June 30, 2014, 4:25am UTC](https://forum.xojo.com/t/svg-support/8693/12 "2014-06-30T04:25:07Z")

</div>

Which garners the ever popular

Dim fr as new FeatureRequest // this item does not exist 😛

(which is a tad facetious - hence the 😛 - since there is case \<[https://xojo.com/issue/10931](https://xojo.com/issue/10931)\>)  
I know we’ve discussed this a couple times internally and we could revisit this as libraries that implement SVG well are becoming more common I just don’t know if one meets our needs & would be suitable as far as licensing  OH and we already have a ton of stuff on the go

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [June 30, 2014, 4:31am UTC](https://forum.xojo.com/t/svg-support/8693/13 "2014-06-30T04:31:44Z")

</div>

As it was accepted with no modifications or suggestions. I’ll do it tomorrow. I usually only open one after being discussed and when it have any chance of it seeing the daylight.

---

<div class="post-metadata">

**Author:** ![Norman\_P](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/858c86/32.png) [@Norman\_P](https://forum.xojo.com/u/Norman_P)\
**Post date:** [June 30, 2014, 4:33am UTC](https://forum.xojo.com/t/svg-support/8693/14 "2014-06-30T04:33:18Z")

</div>

there is case Feedback Case #10931

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [June 30, 2014, 8:01am UTC](https://forum.xojo.com/t/svg-support/8693/15 "2014-06-30T08:01:10Z")

</div>

We have SVG output for ChartDirector and barcode creation in our plugins.

---

<div class="post-metadata">

**Author:** ![Richard\_Summers](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_summers/32/477_2.png) [@Richard\_Summers](https://forum.xojo.com/u/Richard_Summers)\
**Post date:** [June 30, 2014, 8:40am UTC](https://forum.xojo.com/t/svg-support/8693/17 "2014-06-30T08:40:14Z")

</div>

Did someone say GIMP?

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [June 30, 2014, 8:42am UTC](https://forum.xojo.com/t/svg-support/8693/18 "2014-06-30T08:42:09Z")

</div>

The complementary question is:

which formula of handling of vectorial drawings (drawing, to open and save) do we have with Xojo?

---

<div class="post-metadata">

**Author:** ![Emile\_Schwarz](https://forum.xojo.com/letter_avatar_proxy/v4/letter/e/90ced4/32.png) [@Emile\_Schwarz](https://forum.xojo.com/u/Emile_Schwarz)\
**Post date:** [June 30, 2014, 8:43am UTC](https://forum.xojo.com/t/svg-support/8693/19 "2014-06-30T08:43:08Z")

</div>

> [@106080:@Richard Summers](#):
>
> Did someone say GIMP?

I do.

BTW: The G.I.M.P. also opens PDF (I open, change and save [as png] images pdf).

---

<div class="post-metadata">

**Author:** ![Tobias\_Bussmann](https://forum.xojo.com/user_avatar/forum.xojo.com/tobias_bussmann/32/297_2.png) [@Tobias\_Bussmann](https://forum.xojo.com/u/Tobias_Bussmann)\
**Post date:** [June 30, 2014, 8:46am UTC](https://forum.xojo.com/t/svg-support/8693/20 "2014-06-30T08:46:47Z")

</div>

> [@106081:@Emile Schwarz](#):
>
> which formula of handling of vectorial drawings (drawing, to open and save) do we have with Xojo?

this question would be of interest for me, too. Esp. if you read the following on CNET (as “Publisher’s Description From Xojo”): “Xojo supports standard image formats for vector graphics.” [Link (last sentence)](http://download.cnet.com/Xojo/3000-2247_4-75960657.html)

---

<div class="post-metadata">

**Author:** ![Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/user_avatar/forum.xojo.com/eduardo_gutierrez_de_oliveira/32/264_2.png) [@Eduardo\_Gutierrez\_de\_Oliveira](https://forum.xojo.com/u/Eduardo_Gutierrez_de_Oliveira)\
**Post date:** [June 30, 2014, 9:16am UTC](https://forum.xojo.com/t/svg-support/8693/21 "2014-06-30T09:16:12Z")

</div>

[quote=106081:@Emile Schwarz]The complementary question is:

which formula of handling of vectorial drawings (drawing, to open and save) do we have with Xojo?[/quote]

None. We used to have PICT support but it was dropped (sadly). Ticket 10931 asks for vector support (I think I’m subscribed to this but I can’t check from the phone).

Mac-only there’s some cocoa declares that could be used to create them but it’s complex and single-platform.

I wouldn’t mind getting pict support back in as a plugin (or a similar one). The ideal would be a single vector graphics wrapper library for x-plat native methods.

[Next page](https://forum.xojo.com/t/svg-support/8693.md?page=2)
