A command-line tool to convert SWF to SVG?

8,752

Solution 1

Sourceforge seems to have an SWF to SVG converter.

http://swf2svg.sourceforge.net/

Or, the other way around

http://svg2swf.sourceforge.net/

Solution 2

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']

Share:
8,752

Related videos on Youtube

blesh
Author by

blesh

Updated on September 17, 2022

Comments

  • blesh
    blesh over 1 year

    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
    blesh over 13 years
    Actually, all of the SWFs I have are static.
  • blesh
    blesh over 13 years
    Also, 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.
  • Pylsa
    Pylsa over 13 years
    @blesh doesn't matter, they generally aren't... SWF and SVG are two very different kind of files...
  • blesh
    blesh over 13 years
    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]: eprg.org/~sgp/swf2svg.html
  • Pylsa
    Pylsa over 13 years
    @blesh I see... Another thing learned today :)
  • blesh
    blesh over 13 years
    I also found SWFRIP on sourceforge, but it doesn't do anything from the command line.
  • blesh
    blesh over 13 years
    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.
  • Craig Gillikin
    Craig Gillikin over 13 years
    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.
  • Wuffers
    Wuffers over 13 years
    @blesh: I think the web tool you referenced is a bit outdated. "only been tested with Flash 3 files".