A command-line tool to convert SWF to SVG?

4

2

I need to convert a whole bunch of static SWFs to SVGs and I was hoping that there was some sort of command line tool I could use so I could script it with PowerShell. Does anyone know of such an application?

blesh

Posted 2010-10-04T14:54:27.833

Reputation: 43

Answers

5

Sourceforge seems to have an SWF to SVG converter.

http://swf2svg.sourceforge.net/

Or, the other way around

http://svg2swf.sourceforge.net/

mazianni

Posted 2010-10-04T14:54:27.833

Reputation: 344

This, unfortunately is a web-based application. As the title of the question states, I need to automate this from a command-line, with no dependencies on an internet connection. – blesh – 2010-10-20T17:14:44.727

Sorry, I followed the link to the source code and missed the "Web converter tool" midway down the page. The svg2swf tool is command line so I stupidly assumed the swf2svg was too. – mazianni – 2010-10-20T18:34:01.363

1

Research In Motion's development kit has a command line utility for this. You can get it in the dev kit here. The file is in the bin directory and is called swftosvg.exe.

Usage:
swftosvg [-help] [-version] [-o 'outputfile'] [-d 'imagedir'] 'inputfile'.swf
Options:
-help
display this help message
-version
display product version
-o
write the result of the conversion to 'outputfile' [default: 'inputfile'.svg]
-d
write converted images to directory 'imagedir' [default: same directory as 'outputfile']

MaQleod

Posted 2010-10-04T14:54:27.833

Reputation: 12 560

0

SWF is not necessarily static, where SVG usually is, there's no real way of converting SWF to SVG.

BloodPhilia

Posted 2010-10-04T14:54:27.833

Reputation: 27 374

Actually, all of the SWFs I have are static. – blesh – 2010-10-04T14:59:08.547

1Also, I know it can be done, as I've done it in the past, but I can't remember the app I used because it was two years ago. – blesh – 2010-10-04T15:01:18.170

@blesh doesn't matter, they generally aren't... SWF and SVG are two very different kind of files... – BloodPhilia – 2010-10-04T15:01:41.647

1

I've done it in the past. So yes, it can be done. In fact, there's a [web tool to do it][1], but what I'm looking for is a command line tool to do it. [1]: http://www.eprg.org/~sgp/swf2svg.html

– blesh – 2010-10-04T15:11:26.227

@blesh I see... Another thing learned today :) – BloodPhilia – 2010-10-04T15:23:45.483

I also found SWFRIP on sourceforge, but it doesn't do anything from the command line. – blesh – 2010-10-04T15:59:52.247

@blesh: I think the web tool you referenced is a bit outdated. "only been tested with Flash 3 files". – Wuffers – 2010-10-25T02:33:44.867

0

I found it myself.

The tool URL is here, it requires Java, but whatever.

blesh

Posted 2010-10-04T14:54:27.833

Reputation: 43