alts / fxg2svg

Tool for converting .fxg files to .svg
11 stars 1 forks source link

Failed to convert #2

Open thewaver opened 6 years ago

thewaver commented 6 years ago

Hello. I do not know if you have any interest in this but I have just tried out your converter and it failed on all my attempts with thrown exceptions. I will attach a sample file in case you are interested. BTW, your readme does not specify which version of Python should be used.

MxM_Spells.zip

alts commented 6 years ago

Hey @thewaver! I decided to spend some time with this, and the truth is that this script that I wrote as a kind of throwaway thing 6 years ago just isn't capable of doing what I'd hoped. What I wrote has some pretty rudimentary handling of colors and transformations, but that's about it.

I looked into what's going on with your .fxg file, and there are a number of things I just never handled, such as groups of paths without a corresponding Definition tag. Text support.

And then there are some things where it's actually unclear to me what the correct behavior could be. For example, your file has some SolidColor elements with no color attribute, and the FXG spec seems to leave undefined what happens in that case. So I imagine it'd be application specific.

I think all of these problems are solvable. Would you be interested in taking these on and submitting a patch? The other alternative that I've considered is actually just closing this repo. I worry that it may be worse to provide partially broken software than to provide none at all.

thewaver commented 6 years ago

Hi - I would love to help, and I can actually write Py code without hassle, but the things I don't have are knowledge of either the FXG or SVG spec, no idea where to get the FXG spec from and insufficient free time to invest in either. Sorry.

As it stands, it will actually be significantly faster for me to just manually redraw all the vectors I had in Flash on an open vector app.

Still, thumbs up for your project and for replying!