• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

SWF to Image (JPG,BMP,PNG,etc)

Vinsanity93

Android Enthusiast
Hey does anybody know a program that can batch convert about 1300 swf files to jpg? The files are static, they aren't videos or games that you press play on. I've googled a bunch but they all seem to only convert 1 at a time and you have to do each manually.

I wish it was as simple as changing the file extension :(.
 
What are you using to do them one at a time? If you can find a tool that does it one at a time you could write a script or batch file to do that.

Also, how are the files (swf) named? Is it a conventional naming scheme?
(1.swf, 2.swf, 3.swf...)
 
What are you using to do them one at a time? If you can find a tool that does it one at a time you could write a script or batch file to do that.

Also, how are the files (swf) named? Is it a conventional naming scheme?
(1.swf, 2.swf, 3.swf...)

Some converters I googled, I'm not that good at writing scripts (I'm on a Mac btw but I have bootcamp). Yes it's the conventional naming.

A SWF to Video Converter may help you.
It's able to convert SWF files to videos or image formats(JPG, PNG, GIF, etc)
But is it necessary to convert 1,300 swf files at once? That may takes quite a lot of time.

Yea, it's for a e-book but I'd rather have a program than do all 1300 myself.
 
I think this tool will do it. SWFtools, and you can compile it for mac with fink.
In particular, it looks like the swfextract command is the one you'll use. I don't have that tool so it might not be this exact syntax ...
Code:
#!/bin/bash
cd $HOME/Pictures
mkdir jpg
list=$( ls swf/ )
for line in $list
do

  swfextract -n ${list} ${list}.swf
done
I think mac uses bash?
And I think that looks right... again, I don't have those tools installed so I can't test this... but I think that'll get the job done.

This is assuming all your pictures are in the $HOME/Pictures/swf directory.

Here's the wiki for that set of tools:
SWFTools
 
I think this tool will do it. SWFtools, and you can compile it for mac with fink.
In particular, it looks like the swfextract command is the one you'll use. I don't have that tool so it might not be this exact syntax ...
Code:
#!/bin/bash
cd $HOME/Pictures
mkdir jpg
list=$( ls swf/ )
for line in $list
do

  swfextract -n ${list} ${list}.swf
done
I think mac uses bash?
And I think that looks right... again, I don't have those tools installed so I can't test this... but I think that'll get the job done.

This is assuming all your pictures are in the $HOME/Pictures/swf directory.

Here's the wiki for that set of tools:
SWFTools

I found this on their website:
Screen Shot 2012-09-06 at 4.45.10 PM.png

This is the terminal:
Screen Shot 2012-09-06 at 4.46.52 PM.png

And my the folder is in Macintosh HD/Users/ and then my home folder, do I just edit is so it says $Macintosh HD/Users/(My home folder)?

And If I enter the code and it's wrong, would something bad happen?
 
Okay, so just change the the top line (cd ....) to cd your picture directory. You won't need the '$', $HOME is a unix path variable for /home/YOURUSERNAME....

As long as your mac is using bash, you should be fine. The only thing it does is make one directory and use the swfextract tool.

Now, if you can trust that tool is another story - but it didn't seem shady to me at all. GLP and everything. ;)
 
Hey does anybody know a program that can batch convert about 1300 swf files to jpg? The files are static, they aren't videos or games that you press play on. I've googled a bunch but they all seem to only convert 1 at a time and you have to do each manually.

I wish it was as simple as changing the file extension :(.

you can use

qt_tools
quicktime w/ bash scripting
ffmpeg w/ imagemagick.

This is assuming you are running a *NIX os like Linux or Mac OSX.
 
Back
Top Bottom