You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by OmPrakash Muppirala <bi...@gmail.com> on 2014/09/04 19:56:31 UTC

Re: SVG/SWF to FXG Converter

On Thu, Sep 4, 2014 at 10:47 AM, Sascha Ahrend <sa...@icloud.com> wrote:

> Hello all,
>
>
> following a recent thread on Design tools for Flex, I built a SVG/SWF to
> FXG converter.
> The SVG conversion scheme is a modified version of Inkscape’s upcoming FXG
> export scheme (no release date yet.)
> The SWF conversion is based on the as3swf library.
>

Sascha, this is awesome.  Thanks for working on this.  I will play with it
and give you some feedback soon.  Any chance you will be willing to donate
it to Apache Flex so that we can have the community work on it and make it
better?


>
> You can find the converter as well as the source code here:
> http://www.realcreation.com/S2F_Converter/
>
> Windows users:
> As Microsoft Windows doesn't ship with any built-in XSL processor
> (necessary for the SVG conversion), this code is for Mac OS only.
> However, you can adjust it to use a Windows 3rd party XSL command line
> processor (e.g. Saxon, msxsl, etc.) by just changing a few lines of code.
>

When I built an FXG to SVG converter (reverse of what you have done here),
I built an AIR app and called the XSLT function from the embedded browser.
Webkit comes with an XSLT converter, so it should be pretty straightforward
to make this tool cross-platform when used with AIR.


>
> I also wrote a small tutorial, what may be of some general use, when
> working with FXG conversion.
>

Any thoughts on creating an plugin/extension for Illustrator CC?  It would
be a great feature to have this integrated into the workflow.

Thanks,
Om


> I hope you like it.
>
>
> Best Regards,
>
> Sascha
>
>

Re: SVG/SWF to FXG Converter

Posted by Sascha Ahrend <sa...@icloud.com>.
Hi Om,

thank you for your answer. I really appreciate.

> Any chance you will be willing to donate
> it to Apache Flex so that we can have the community work on it and make it
> better?

If you find it worthwhile, it would be an honor.
Most of the logic was openly available anyway.

> Webkit comes with an XSLT converter, so it should be pretty straightforward
> to make this tool cross-platform when used with AIR.


Now, that’s good news then.
I’m am happy to be surprised once more, how powerful Flex really is.

There is still a lot of room for improving the converter.
Not just a building Win/Mac version, but also on the conversion methods themselves.

> Any thoughts on creating an plugin/extension for Illustrator CC?  It would
> be a great feature to have this integrated into the workflow.

Sorry, the last time I tried something like that was with Flash MX 2004, so I guess there is better people to ask ;-)

I am looking forward to your feedback,

Sascha



Am 04.09.2014 um 19:56 schrieb OmPrakash Muppirala <bi...@gmail.com>:

> On Thu, Sep 4, 2014 at 10:47 AM, Sascha Ahrend <sa...@icloud.com> wrote:
> 
>> Hello all,
>> 
>> 
>> following a recent thread on Design tools for Flex, I built a SVG/SWF to
>> FXG converter.
>> The SVG conversion scheme is a modified version of Inkscape’s upcoming FXG
>> export scheme (no release date yet.)
>> The SWF conversion is based on the as3swf library.
>> 
> 
> Sascha, this is awesome.  Thanks for working on this.  I will play with it
> and give you some feedback soon.  Any chance you will be willing to donate
> it to Apache Flex so that we can have the community work on it and make it
> better?
> 
> 
>> 
>> You can find the converter as well as the source code here:
>> http://www.realcreation.com/S2F_Converter/
>> 
>> Windows users:
>> As Microsoft Windows doesn't ship with any built-in XSL processor
>> (necessary for the SVG conversion), this code is for Mac OS only.
>> However, you can adjust it to use a Windows 3rd party XSL command line
>> processor (e.g. Saxon, msxsl, etc.) by just changing a few lines of code.
>> 
> 
> When I built an FXG to SVG converter (reverse of what you have done here),
> I built an AIR app and called the XSLT function from the embedded browser.
> Webkit comes with an XSLT converter, so it should be pretty straightforward
> to make this tool cross-platform when used with AIR.
> 
> 
>> 
>> I also wrote a small tutorial, what may be of some general use, when
>> working with FXG conversion.
>> 
> 
> Any thoughts on creating an plugin/extension for Illustrator CC?  It would
> be a great feature to have this integrated into the workflow.
> 
> Thanks,
> Om
> 
> 
>> I hope you like it.
>> 
>> 
>> Best Regards,
>> 
>> Sascha
>> 
>> 


Re: SVG/SWF to FXG Converter

Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Sep 6, 2014 2:23 PM, "jude" <fl...@gmail.com> wrote:
>
> FYI There is some new commands in AS3 to getGraphicsData(). Basically, you
> may be able to load a SWF and run exportGraphicsData to get the vectors
> data and then you can use that to create SVG or FXG.
> http://www.bytearray.org/?p=4893
>
> Also, there is this,
>
http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_28213225.html
>
>
> Om, there are XML processors in almost all the browsers. Do you know is it
> only Webkit that has an XSLT processor or do others as well? I'm thinking
> if what you guys are talking about would run in the browser.

I know that XSLT works on Safari(webkit) and Firefox.  Google has declared
a an intent to remove it from their Blink engine.

I believe you need to do some ActiveX calls for IE.

Thanks,
Om

>
> For example, this JS function is used to create an XML document:
>
>                     // IE
>                     if (window.ActiveXObject) {
>                         var xmlDoc = new
ActiveXObject("Microsoft.XMLDOM");
>                         xmlDoc.async = "false";
>                         xmlDoc.loadXML(txt);
>                     }
>
>                     // Mozilla, Firefox, Opera, etc.
>                     else if (document.implementation.createDocument) {
>                         var parser = new DOMParser();
>                         var text = txt;
>                         var xmlDoc = parser.parseFromString(text,
> "text/xml");
>                     }
>
>
> On Sat, Sep 6, 2014 at 9:43 AM, Sascha Ahrend <sa...@icloud.com> wrote:
>
> > A direct way to export FXG from Illustrator CC would be to e.g. run an
> > AppleScript to Export SVG. Example here:
> >
> >
> >
http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/illustrator/sdk/CC2014/Illustrator%20Scripting%20Reference%20-%20AppleScript.pdf
> >
> > Then add an additional code line in the AppleScript to call the
> > 'svg2fxg.xls' (included in the app source code) just the same way I did
by
> > using 'xsltproc‘.
> >
> >
> >
> > I will see to add some (silent) command line arguments to the converter
as
> > well together with a Win/Mac version.
> >
> > S
> >
> >
> >
> >
> > Am 05.09.2014 um 21:32 schrieb Sascha Ahrend <sa...@icloud.com>:
> >
> > >
> > > I meant to convert the swf to fxg after.
> > >
> > > Yes, of course there is dependencies. It's rather meant as a
workaround.
> > >
> > > Rgds.,
> > >
> > > Sascha
> > >
> > >
> > >
> > >
> > >
> > >> Am 05.09.2014 um 21:28 schrieb OmPrakash Muppirala <
> > bigosmallm@gmail.com>:
> > >>
> > >> On Fri, Sep 5, 2014 at 12:24 PM, Sascha Ahrend <sa...@icloud.com>
> > wrote:
> > >>
> > >>>> Any thoughts on creating an plugin/extension for Illustrator CC?
It
> > >>> would
> > >>>> be a great feature to have this integrated into the workflow.
> > >>>
> > >>> Actually the best way to convert AI files is to import an .ai into
the
> > >>> stage of a Flash Pro file with 'Text as vector outline‘ and 'all
layers
> > >>> into a single flash-layer‘ and release straight away as .swf.
> > >>> Supposed you removed all bitmap data, you will get pretty accurate
> > results.
> > >> That is one way, but you don't get it in the FXG file format and all
the
> > >> benefits that come with it.  Also, it adds a dependency on Flash Pro.
> > >>
> > >> Thanks,
> > >> Om
> > >>
> > >>
> > >>> S
> > >>>
> > >>>> Am 04.09.2014 um 19:56 schrieb OmPrakash Muppirala <
> > bigosmallm@gmail.com>:
> > >>>>
> > >>>>> On Thu, Sep 4, 2014 at 10:47 AM, Sascha Ahrend <sahrend@icloud.com
>
> > >>>> wrote:
> > >>>>
> > >>>>> Hello all,
> > >>>>>
> > >>>>>
> > >>>>> following a recent thread on Design tools for Flex, I built a
> > SVG/SWF to
> > >>>>> FXG converter.
> > >>>>> The SVG conversion scheme is a modified version of Inkscape’s
> > upcoming
> > >>> FXG
> > >>>>> export scheme (no release date yet.)
> > >>>>> The SWF conversion is based on the as3swf library.
> > >>>>
> > >>>> Sascha, this is awesome.  Thanks for working on this.  I will play
> > with
> > >>> it
> > >>>> and give you some feedback soon.  Any chance you will be willing to
> > >>> donate
> > >>>> it to Apache Flex so that we can have the community work on it and
> > make
> > >>> it
> > >>>> better?
> > >>>>
> > >>>>
> > >>>>>
> > >>>>> You can find the converter as well as the source code here:
> > >>>>> http://www.realcreation.com/S2F_Converter/
> > >>>>>
> > >>>>> Windows users:
> > >>>>> As Microsoft Windows doesn't ship with any built-in XSL processor
> > >>>>> (necessary for the SVG conversion), this code is for Mac OS only.
> > >>>>> However, you can adjust it to use a Windows 3rd party XSL command
> > line
> > >>>>> processor (e.g. Saxon, msxsl, etc.) by just changing a few lines
of
> > >>> code.
> > >>>>
> > >>>> When I built an FXG to SVG converter (reverse of what you have done
> > >>> here),
> > >>>> I built an AIR app and called the XSLT function from the embedded
> > >>> browser.
> > >>>> Webkit comes with an XSLT converter, so it should be pretty
> > >>> straightforward
> > >>>> to make this tool cross-platform when used with AIR.
> > >>>>
> > >>>>
> > >>>>>
> > >>>>> I also wrote a small tutorial, what may be of some general use,
when
> > >>>>> working with FXG conversion.
> > >>>>
> > >>>> Any thoughts on creating an plugin/extension for Illustrator CC?
It
> > >>> would
> > >>>> be a great feature to have this integrated into the workflow.
> > >>>>
> > >>>> Thanks,
> > >>>> Om
> > >>>>
> > >>>>
> > >>>>> I hope you like it.
> > >>>>>
> > >>>>>
> > >>>>> Best Regards,
> > >>>>>
> > >>>>> Sascha
> > >>>
> > >>>
> >
> >

Re: SVG/SWF to FXG Converter

Posted by Deepak MS <me...@gmail.com>.
Came across another online tool to create fxgs:

http://chris.firlingcanada.com/flexdevtips/flex4.5/pathbuilder/FlexPathBuilder.html?v=1.2



On Thu, Oct 8, 2015 at 11:54 PM, Sascha Ahrend <sa...@icloud.com> wrote:

> Hi, you can find the latest version here:
>
> http://www.realcreation.com/S2F_Converter/ <
> http://www.realcreation.com/S2F_Converter/>
>
> I found that there’s is a windows built of xsltproc as well.
> If you’re interested, you could bundle it (source code is on the page), so
> you will have full 360 degree rotation of vector objects for the windows
> platform as well.
> (Air's included webkit xsl processor only allows 90 degree flipping of
> objects, due to a lack of xsl math).
>
> If you are using AI CC2014 on OS X, then here’s a plugin script to run the
> converter straight from Illustrator:
> http://www.realcreation.com/S2F_Converter/AI_CC_2014.zip
>
> Regards,
>
> Sascha
>
> > Am 07.10.2015 um 13:37 schrieb Rui Cruz <in...@gmail.com>:
> >
> > Hi,
> >
> > Is there any news on this converter?
> >
> >
> > Regards
> >
> >
> >
> > --
> > View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/SVG-SWF-to-FXG-Converter-tp7870p11281.html
> > Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
>

Re: SVG/SWF to FXG Converter

Posted by chris_flex <ck...@christiankiefer.de>.
Hi Sascha,

the http://www.realcreation.com/S2F_Converter/ seems to ignore the alpha
values (after transforming alphs is always 1). I tried it with svgs exported
from affinity designer and illustrator cs6.

Is there something I am doing wrong?

Kind regards

Christian



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Re: SVG/SWF to FXG Converter

Posted by Sascha Ahrend <sa...@icloud.com>.
Hi, you can find the latest version here:

http://www.realcreation.com/S2F_Converter/ <http://www.realcreation.com/S2F_Converter/>

I found that there’s is a windows built of xsltproc as well.
If you’re interested, you could bundle it (source code is on the page), so you will have full 360 degree rotation of vector objects for the windows platform as well.
(Air's included webkit xsl processor only allows 90 degree flipping of objects, due to a lack of xsl math).

If you are using AI CC2014 on OS X, then here’s a plugin script to run the converter straight from Illustrator:
http://www.realcreation.com/S2F_Converter/AI_CC_2014.zip

Regards,

Sascha

> Am 07.10.2015 um 13:37 schrieb Rui Cruz <in...@gmail.com>:
> 
> Hi,
> 
> Is there any news on this converter?
> 
> 
> Regards
> 
> 
> 
> --
> View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SVG-SWF-to-FXG-Converter-tp7870p11281.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: SVG/SWF to FXG Converter

Posted by Rui Cruz <in...@gmail.com>.
Hi,

Is there any news on this converter?


Regards



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/SVG-SWF-to-FXG-Converter-tp7870p11281.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: SVG/SWF to FXG Converter

Posted by Sascha Ahrend <sa...@icloud.com>.
This looks very promising, thank you.
I will explore it a little deeper.

Thx,
S


> Am 06.09.2014 um 23:22 schrieb jude <fl...@gmail.com>:
> 
> FYI There is some new commands in AS3 to getGraphicsData(). Basically, you
> may be able to load a SWF and run exportGraphicsData to get the vectors
> data and then you can use that to create SVG or FXG.
> http://www.bytearray.org/?p=4893
> 
> Also, there is this,
> http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_28213225.html
> 
> 
> Om, there are XML processors in almost all the browsers. Do you know is it
> only Webkit that has an XSLT processor or do others as well? I'm thinking
> if what you guys are talking about would run in the browser.
> 
> For example, this JS function is used to create an XML document:
> 
>                    // IE
>                    if (window.ActiveXObject) {
>                        var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
>                        xmlDoc.async = "false";
>                        xmlDoc.loadXML(txt);
>                    }
> 
>                    // Mozilla, Firefox, Opera, etc.
>                    else if (document.implementation.createDocument) {
>                        var parser = new DOMParser();
>                        var text = txt;
>                        var xmlDoc = parser.parseFromString(text,
> "text/xml");
>                    }
> 
> 
>> On Sat, Sep 6, 2014 at 9:43 AM, Sascha Ahrend <sa...@icloud.com> wrote:
>> 
>> A direct way to export FXG from Illustrator CC would be to e.g. run an
>> AppleScript to Export SVG. Example here:
>> 
>> 
>> http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/illustrator/sdk/CC2014/Illustrator%20Scripting%20Reference%20-%20AppleScript.pdf
>> 
>> Then add an additional code line in the AppleScript to call the
>> 'svg2fxg.xls' (included in the app source code) just the same way I did by
>> using 'xsltproc‘.
>> 
>> 
>> 
>> I will see to add some (silent) command line arguments to the converter as
>> well together with a Win/Mac version.
>> 
>> S
>> 
>> 
>> 
>> 
>>> Am 05.09.2014 um 21:32 schrieb Sascha Ahrend <sa...@icloud.com>:
>>> 
>>> 
>>> I meant to convert the swf to fxg after.
>>> 
>>> Yes, of course there is dependencies. It's rather meant as a workaround.
>>> 
>>> Rgds.,
>>> 
>>> Sascha
>>> 
>>> 
>>> 
>>> 
>>> 
>>>> Am 05.09.2014 um 21:28 schrieb OmPrakash Muppirala <
>> bigosmallm@gmail.com>:
>>>> 
>>>> On Fri, Sep 5, 2014 at 12:24 PM, Sascha Ahrend <sa...@icloud.com>
>> wrote:
>>>> 
>>>>>> Any thoughts on creating an plugin/extension for Illustrator CC?  It
>>>>> would
>>>>>> be a great feature to have this integrated into the workflow.
>>>>> 
>>>>> Actually the best way to convert AI files is to import an .ai into the
>>>>> stage of a Flash Pro file with 'Text as vector outline‘ and 'all layers
>>>>> into a single flash-layer‘ and release straight away as .swf.
>>>>> Supposed you removed all bitmap data, you will get pretty accurate
>> results.
>>>> That is one way, but you don't get it in the FXG file format and all the
>>>> benefits that come with it.  Also, it adds a dependency on Flash Pro.
>>>> 
>>>> Thanks,
>>>> Om
>>>> 
>>>> 
>>>>> S
>>>>> 
>>>>>> Am 04.09.2014 um 19:56 schrieb OmPrakash Muppirala <
>> bigosmallm@gmail.com>:
>>>>>> 
>>>>>>> On Thu, Sep 4, 2014 at 10:47 AM, Sascha Ahrend <sa...@icloud.com>
>>>>>> wrote:
>>>>>> 
>>>>>>> Hello all,
>>>>>>> 
>>>>>>> 
>>>>>>> following a recent thread on Design tools for Flex, I built a
>> SVG/SWF to
>>>>>>> FXG converter.
>>>>>>> The SVG conversion scheme is a modified version of Inkscape’s
>> upcoming
>>>>> FXG
>>>>>>> export scheme (no release date yet.)
>>>>>>> The SWF conversion is based on the as3swf library.
>>>>>> 
>>>>>> Sascha, this is awesome.  Thanks for working on this.  I will play
>> with
>>>>> it
>>>>>> and give you some feedback soon.  Any chance you will be willing to
>>>>> donate
>>>>>> it to Apache Flex so that we can have the community work on it and
>> make
>>>>> it
>>>>>> better?
>>>>>> 
>>>>>> 
>>>>>>> 
>>>>>>> You can find the converter as well as the source code here:
>>>>>>> http://www.realcreation.com/S2F_Converter/
>>>>>>> 
>>>>>>> Windows users:
>>>>>>> As Microsoft Windows doesn't ship with any built-in XSL processor
>>>>>>> (necessary for the SVG conversion), this code is for Mac OS only.
>>>>>>> However, you can adjust it to use a Windows 3rd party XSL command
>> line
>>>>>>> processor (e.g. Saxon, msxsl, etc.) by just changing a few lines of
>>>>> code.
>>>>>> 
>>>>>> When I built an FXG to SVG converter (reverse of what you have done
>>>>> here),
>>>>>> I built an AIR app and called the XSLT function from the embedded
>>>>> browser.
>>>>>> Webkit comes with an XSLT converter, so it should be pretty
>>>>> straightforward
>>>>>> to make this tool cross-platform when used with AIR.
>>>>>> 
>>>>>> 
>>>>>>> 
>>>>>>> I also wrote a small tutorial, what may be of some general use, when
>>>>>>> working with FXG conversion.
>>>>>> 
>>>>>> Any thoughts on creating an plugin/extension for Illustrator CC?  It
>>>>> would
>>>>>> be a great feature to have this integrated into the workflow.
>>>>>> 
>>>>>> Thanks,
>>>>>> Om
>>>>>> 
>>>>>> 
>>>>>>> I hope you like it.
>>>>>>> 
>>>>>>> 
>>>>>>> Best Regards,
>>>>>>> 
>>>>>>> Sascha
>> 
>> 

Re: SVG/SWF to FXG Converter

Posted by jude <fl...@gmail.com>.
FYI There is some new commands in AS3 to getGraphicsData(). Basically, you
may be able to load a SWF and run exportGraphicsData to get the vectors
data and then you can use that to create SVG or FXG.
http://www.bytearray.org/?p=4893

Also, there is this,
http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_28213225.html


Om, there are XML processors in almost all the browsers. Do you know is it
only Webkit that has an XSLT processor or do others as well? I'm thinking
if what you guys are talking about would run in the browser.

For example, this JS function is used to create an XML document:

                    // IE
                    if (window.ActiveXObject) {
                        var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
                        xmlDoc.async = "false";
                        xmlDoc.loadXML(txt);
                    }

                    // Mozilla, Firefox, Opera, etc.
                    else if (document.implementation.createDocument) {
                        var parser = new DOMParser();
                        var text = txt;
                        var xmlDoc = parser.parseFromString(text,
"text/xml");
                    }


On Sat, Sep 6, 2014 at 9:43 AM, Sascha Ahrend <sa...@icloud.com> wrote:

> A direct way to export FXG from Illustrator CC would be to e.g. run an
> AppleScript to Export SVG. Example here:
>
>
> http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/illustrator/sdk/CC2014/Illustrator%20Scripting%20Reference%20-%20AppleScript.pdf
>
> Then add an additional code line in the AppleScript to call the
> 'svg2fxg.xls' (included in the app source code) just the same way I did by
> using 'xsltproc‘.
>
>
>
> I will see to add some (silent) command line arguments to the converter as
> well together with a Win/Mac version.
>
> S
>
>
>
>
> Am 05.09.2014 um 21:32 schrieb Sascha Ahrend <sa...@icloud.com>:
>
> >
> > I meant to convert the swf to fxg after.
> >
> > Yes, of course there is dependencies. It's rather meant as a workaround.
> >
> > Rgds.,
> >
> > Sascha
> >
> >
> >
> >
> >
> >> Am 05.09.2014 um 21:28 schrieb OmPrakash Muppirala <
> bigosmallm@gmail.com>:
> >>
> >> On Fri, Sep 5, 2014 at 12:24 PM, Sascha Ahrend <sa...@icloud.com>
> wrote:
> >>
> >>>> Any thoughts on creating an plugin/extension for Illustrator CC?  It
> >>> would
> >>>> be a great feature to have this integrated into the workflow.
> >>>
> >>> Actually the best way to convert AI files is to import an .ai into the
> >>> stage of a Flash Pro file with 'Text as vector outline‘ and 'all layers
> >>> into a single flash-layer‘ and release straight away as .swf.
> >>> Supposed you removed all bitmap data, you will get pretty accurate
> results.
> >> That is one way, but you don't get it in the FXG file format and all the
> >> benefits that come with it.  Also, it adds a dependency on Flash Pro.
> >>
> >> Thanks,
> >> Om
> >>
> >>
> >>> S
> >>>
> >>>> Am 04.09.2014 um 19:56 schrieb OmPrakash Muppirala <
> bigosmallm@gmail.com>:
> >>>>
> >>>>> On Thu, Sep 4, 2014 at 10:47 AM, Sascha Ahrend <sa...@icloud.com>
> >>>> wrote:
> >>>>
> >>>>> Hello all,
> >>>>>
> >>>>>
> >>>>> following a recent thread on Design tools for Flex, I built a
> SVG/SWF to
> >>>>> FXG converter.
> >>>>> The SVG conversion scheme is a modified version of Inkscape’s
> upcoming
> >>> FXG
> >>>>> export scheme (no release date yet.)
> >>>>> The SWF conversion is based on the as3swf library.
> >>>>
> >>>> Sascha, this is awesome.  Thanks for working on this.  I will play
> with
> >>> it
> >>>> and give you some feedback soon.  Any chance you will be willing to
> >>> donate
> >>>> it to Apache Flex so that we can have the community work on it and
> make
> >>> it
> >>>> better?
> >>>>
> >>>>
> >>>>>
> >>>>> You can find the converter as well as the source code here:
> >>>>> http://www.realcreation.com/S2F_Converter/
> >>>>>
> >>>>> Windows users:
> >>>>> As Microsoft Windows doesn't ship with any built-in XSL processor
> >>>>> (necessary for the SVG conversion), this code is for Mac OS only.
> >>>>> However, you can adjust it to use a Windows 3rd party XSL command
> line
> >>>>> processor (e.g. Saxon, msxsl, etc.) by just changing a few lines of
> >>> code.
> >>>>
> >>>> When I built an FXG to SVG converter (reverse of what you have done
> >>> here),
> >>>> I built an AIR app and called the XSLT function from the embedded
> >>> browser.
> >>>> Webkit comes with an XSLT converter, so it should be pretty
> >>> straightforward
> >>>> to make this tool cross-platform when used with AIR.
> >>>>
> >>>>
> >>>>>
> >>>>> I also wrote a small tutorial, what may be of some general use, when
> >>>>> working with FXG conversion.
> >>>>
> >>>> Any thoughts on creating an plugin/extension for Illustrator CC?  It
> >>> would
> >>>> be a great feature to have this integrated into the workflow.
> >>>>
> >>>> Thanks,
> >>>> Om
> >>>>
> >>>>
> >>>>> I hope you like it.
> >>>>>
> >>>>>
> >>>>> Best Regards,
> >>>>>
> >>>>> Sascha
> >>>
> >>>
>
>

Re: SVG/SWF to FXG Converter

Posted by Sascha Ahrend <sa...@icloud.com>.
A direct way to export FXG from Illustrator CC would be to e.g. run an AppleScript to Export SVG. Example here:

http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/illustrator/sdk/CC2014/Illustrator%20Scripting%20Reference%20-%20AppleScript.pdf

Then add an additional code line in the AppleScript to call the 'svg2fxg.xls' (included in the app source code) just the same way I did by using 'xsltproc‘.



I will see to add some (silent) command line arguments to the converter as well together with a Win/Mac version.

S




Am 05.09.2014 um 21:32 schrieb Sascha Ahrend <sa...@icloud.com>:

> 
> I meant to convert the swf to fxg after.
> 
> Yes, of course there is dependencies. It's rather meant as a workaround.
> 
> Rgds.,
> 
> Sascha
> 
> 
> 
> 
> 
>> Am 05.09.2014 um 21:28 schrieb OmPrakash Muppirala <bi...@gmail.com>:
>> 
>> On Fri, Sep 5, 2014 at 12:24 PM, Sascha Ahrend <sa...@icloud.com> wrote:
>> 
>>>> Any thoughts on creating an plugin/extension for Illustrator CC?  It
>>> would
>>>> be a great feature to have this integrated into the workflow.
>>> 
>>> Actually the best way to convert AI files is to import an .ai into the
>>> stage of a Flash Pro file with 'Text as vector outline‘ and 'all layers
>>> into a single flash-layer‘ and release straight away as .swf.
>>> Supposed you removed all bitmap data, you will get pretty accurate results.
>> That is one way, but you don't get it in the FXG file format and all the
>> benefits that come with it.  Also, it adds a dependency on Flash Pro.
>> 
>> Thanks,
>> Om
>> 
>> 
>>> S
>>> 
>>>> Am 04.09.2014 um 19:56 schrieb OmPrakash Muppirala <bi...@gmail.com>:
>>>> 
>>>>> On Thu, Sep 4, 2014 at 10:47 AM, Sascha Ahrend <sa...@icloud.com>
>>>> wrote:
>>>> 
>>>>> Hello all,
>>>>> 
>>>>> 
>>>>> following a recent thread on Design tools for Flex, I built a SVG/SWF to
>>>>> FXG converter.
>>>>> The SVG conversion scheme is a modified version of Inkscape’s upcoming
>>> FXG
>>>>> export scheme (no release date yet.)
>>>>> The SWF conversion is based on the as3swf library.
>>>> 
>>>> Sascha, this is awesome.  Thanks for working on this.  I will play with
>>> it
>>>> and give you some feedback soon.  Any chance you will be willing to
>>> donate
>>>> it to Apache Flex so that we can have the community work on it and make
>>> it
>>>> better?
>>>> 
>>>> 
>>>>> 
>>>>> You can find the converter as well as the source code here:
>>>>> http://www.realcreation.com/S2F_Converter/
>>>>> 
>>>>> Windows users:
>>>>> As Microsoft Windows doesn't ship with any built-in XSL processor
>>>>> (necessary for the SVG conversion), this code is for Mac OS only.
>>>>> However, you can adjust it to use a Windows 3rd party XSL command line
>>>>> processor (e.g. Saxon, msxsl, etc.) by just changing a few lines of
>>> code.
>>>> 
>>>> When I built an FXG to SVG converter (reverse of what you have done
>>> here),
>>>> I built an AIR app and called the XSLT function from the embedded
>>> browser.
>>>> Webkit comes with an XSLT converter, so it should be pretty
>>> straightforward
>>>> to make this tool cross-platform when used with AIR.
>>>> 
>>>> 
>>>>> 
>>>>> I also wrote a small tutorial, what may be of some general use, when
>>>>> working with FXG conversion.
>>>> 
>>>> Any thoughts on creating an plugin/extension for Illustrator CC?  It
>>> would
>>>> be a great feature to have this integrated into the workflow.
>>>> 
>>>> Thanks,
>>>> Om
>>>> 
>>>> 
>>>>> I hope you like it.
>>>>> 
>>>>> 
>>>>> Best Regards,
>>>>> 
>>>>> Sascha
>>> 
>>> 


Re: SVG/SWF to FXG Converter

Posted by Sascha Ahrend <sa...@icloud.com>.
I meant to convert the swf to fxg after.

Yes, of course there is dependencies. It's rather meant as a workaround.

Rgds.,

Sascha





> Am 05.09.2014 um 21:28 schrieb OmPrakash Muppirala <bi...@gmail.com>:
> 
> On Fri, Sep 5, 2014 at 12:24 PM, Sascha Ahrend <sa...@icloud.com> wrote:
> 
>>> Any thoughts on creating an plugin/extension for Illustrator CC?  It
>> would
>>> be a great feature to have this integrated into the workflow.
>> 
>> Actually the best way to convert AI files is to import an .ai into the
>> stage of a Flash Pro file with 'Text as vector outline‘ and 'all layers
>> into a single flash-layer‘ and release straight away as .swf.
>> Supposed you removed all bitmap data, you will get pretty accurate results.
> That is one way, but you don't get it in the FXG file format and all the
> benefits that come with it.  Also, it adds a dependency on Flash Pro.
> 
> Thanks,
> Om
> 
> 
>> S
>> 
>>> Am 04.09.2014 um 19:56 schrieb OmPrakash Muppirala <bi...@gmail.com>:
>>> 
>>>> On Thu, Sep 4, 2014 at 10:47 AM, Sascha Ahrend <sa...@icloud.com>
>>> wrote:
>>> 
>>>> Hello all,
>>>> 
>>>> 
>>>> following a recent thread on Design tools for Flex, I built a SVG/SWF to
>>>> FXG converter.
>>>> The SVG conversion scheme is a modified version of Inkscape’s upcoming
>> FXG
>>>> export scheme (no release date yet.)
>>>> The SWF conversion is based on the as3swf library.
>>> 
>>> Sascha, this is awesome.  Thanks for working on this.  I will play with
>> it
>>> and give you some feedback soon.  Any chance you will be willing to
>> donate
>>> it to Apache Flex so that we can have the community work on it and make
>> it
>>> better?
>>> 
>>> 
>>>> 
>>>> You can find the converter as well as the source code here:
>>>> http://www.realcreation.com/S2F_Converter/
>>>> 
>>>> Windows users:
>>>> As Microsoft Windows doesn't ship with any built-in XSL processor
>>>> (necessary for the SVG conversion), this code is for Mac OS only.
>>>> However, you can adjust it to use a Windows 3rd party XSL command line
>>>> processor (e.g. Saxon, msxsl, etc.) by just changing a few lines of
>> code.
>>> 
>>> When I built an FXG to SVG converter (reverse of what you have done
>> here),
>>> I built an AIR app and called the XSLT function from the embedded
>> browser.
>>> Webkit comes with an XSLT converter, so it should be pretty
>> straightforward
>>> to make this tool cross-platform when used with AIR.
>>> 
>>> 
>>>> 
>>>> I also wrote a small tutorial, what may be of some general use, when
>>>> working with FXG conversion.
>>> 
>>> Any thoughts on creating an plugin/extension for Illustrator CC?  It
>> would
>>> be a great feature to have this integrated into the workflow.
>>> 
>>> Thanks,
>>> Om
>>> 
>>> 
>>>> I hope you like it.
>>>> 
>>>> 
>>>> Best Regards,
>>>> 
>>>> Sascha
>> 
>> 

Re: SVG/SWF to FXG Converter

Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Fri, Sep 5, 2014 at 12:24 PM, Sascha Ahrend <sa...@icloud.com> wrote:

> > Any thoughts on creating an plugin/extension for Illustrator CC?  It
> would
> > be a great feature to have this integrated into the workflow.
>
> Actually the best way to convert AI files is to import an .ai into the
> stage of a Flash Pro file with 'Text as vector outline‘ and 'all layers
> into a single flash-layer‘ and release straight away as .swf.
> Supposed you removed all bitmap data, you will get pretty accurate results.
>
>
That is one way, but you don't get it in the FXG file format and all the
benefits that come with it.  Also, it adds a dependency on Flash Pro.

Thanks,
Om


> S
>
> Am 04.09.2014 um 19:56 schrieb OmPrakash Muppirala <bi...@gmail.com>:
>
> > On Thu, Sep 4, 2014 at 10:47 AM, Sascha Ahrend <sa...@icloud.com>
> wrote:
> >
> >> Hello all,
> >>
> >>
> >> following a recent thread on Design tools for Flex, I built a SVG/SWF to
> >> FXG converter.
> >> The SVG conversion scheme is a modified version of Inkscape’s upcoming
> FXG
> >> export scheme (no release date yet.)
> >> The SWF conversion is based on the as3swf library.
> >>
> >
> > Sascha, this is awesome.  Thanks for working on this.  I will play with
> it
> > and give you some feedback soon.  Any chance you will be willing to
> donate
> > it to Apache Flex so that we can have the community work on it and make
> it
> > better?
> >
> >
> >>
> >> You can find the converter as well as the source code here:
> >> http://www.realcreation.com/S2F_Converter/
> >>
> >> Windows users:
> >> As Microsoft Windows doesn't ship with any built-in XSL processor
> >> (necessary for the SVG conversion), this code is for Mac OS only.
> >> However, you can adjust it to use a Windows 3rd party XSL command line
> >> processor (e.g. Saxon, msxsl, etc.) by just changing a few lines of
> code.
> >>
> >
> > When I built an FXG to SVG converter (reverse of what you have done
> here),
> > I built an AIR app and called the XSLT function from the embedded
> browser.
> > Webkit comes with an XSLT converter, so it should be pretty
> straightforward
> > to make this tool cross-platform when used with AIR.
> >
> >
> >>
> >> I also wrote a small tutorial, what may be of some general use, when
> >> working with FXG conversion.
> >>
> >
> > Any thoughts on creating an plugin/extension for Illustrator CC?  It
> would
> > be a great feature to have this integrated into the workflow.
> >
> > Thanks,
> > Om
> >
> >
> >> I hope you like it.
> >>
> >>
> >> Best Regards,
> >>
> >> Sascha
> >>
> >>
>
>

Re: SVG/SWF to FXG Converter

Posted by Sascha Ahrend <sa...@icloud.com>.
> Any thoughts on creating an plugin/extension for Illustrator CC?  It would
> be a great feature to have this integrated into the workflow.

Actually the best way to convert AI files is to import an .ai into the stage of a Flash Pro file with 'Text as vector outline‘ and 'all layers into a single flash-layer‘ and release straight away as .swf.
Supposed you removed all bitmap data, you will get pretty accurate results.

S

Am 04.09.2014 um 19:56 schrieb OmPrakash Muppirala <bi...@gmail.com>:

> On Thu, Sep 4, 2014 at 10:47 AM, Sascha Ahrend <sa...@icloud.com> wrote:
> 
>> Hello all,
>> 
>> 
>> following a recent thread on Design tools for Flex, I built a SVG/SWF to
>> FXG converter.
>> The SVG conversion scheme is a modified version of Inkscape’s upcoming FXG
>> export scheme (no release date yet.)
>> The SWF conversion is based on the as3swf library.
>> 
> 
> Sascha, this is awesome.  Thanks for working on this.  I will play with it
> and give you some feedback soon.  Any chance you will be willing to donate
> it to Apache Flex so that we can have the community work on it and make it
> better?
> 
> 
>> 
>> You can find the converter as well as the source code here:
>> http://www.realcreation.com/S2F_Converter/
>> 
>> Windows users:
>> As Microsoft Windows doesn't ship with any built-in XSL processor
>> (necessary for the SVG conversion), this code is for Mac OS only.
>> However, you can adjust it to use a Windows 3rd party XSL command line
>> processor (e.g. Saxon, msxsl, etc.) by just changing a few lines of code.
>> 
> 
> When I built an FXG to SVG converter (reverse of what you have done here),
> I built an AIR app and called the XSLT function from the embedded browser.
> Webkit comes with an XSLT converter, so it should be pretty straightforward
> to make this tool cross-platform when used with AIR.
> 
> 
>> 
>> I also wrote a small tutorial, what may be of some general use, when
>> working with FXG conversion.
>> 
> 
> Any thoughts on creating an plugin/extension for Illustrator CC?  It would
> be a great feature to have this integrated into the workflow.
> 
> Thanks,
> Om
> 
> 
>> I hope you like it.
>> 
>> 
>> Best Regards,
>> 
>> Sascha
>> 
>>