Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract images from a SWF file?

Tags:

I have a Flash object in a SWF file. It contains an image that I need to extract, so I can use it directly for devices not supporting Flash.

How can I extract the image from the SWF? What tools should I use?

like image 258
pri_dev Avatar asked Feb 25 '12 21:02

pri_dev


1 Answers

There's an open source toolkit that works fairly well for the job. On Windows you'll need to run the installer as Administrator or it dies. Then add the folder to your PATH (or not) and you can pull jpegs out. First:

swfextract /path/to/file.swf 

which will list all of the assets in the file. In this case, pay attention to the ids in the JPEG section. Then for each id, run

swfextract /path/to/file.swf -i id -o name-of-my-new-file.jpg 
like image 78
Tom Avatar answered Oct 02 '22 23:10

Tom